Tech Study

How To Print Convert Feet To Meter In C++ Program

C++ Program to print convert feet to meter

Introduction:

we will learn in this tutorial about how to convert feet into meters in c++ programming with some relevant examples . we might need to come this type of requirements

1m =100cm we know that converting meters to centimeters so if we have can multiply it by 100 to convert into centimeters for examples we have 11.2 meters to convert into centimeters and we multiply it with 100 . meters = x*100 centimeters,it’s equal to 11.2*100 =1120 centimeters

#include<iostream>
using namespace std;	

int main() 
{
    float meter,feet;

    cout<< "Enter feet : ";
    cin >> feet ;    

    meter = feet / 3.2808399;
    cout<< meter ;

    return 0;
}

Result

C++ Program to print convert feet to meter
C++ Program to print convert feet to meter

TaggedC++ Program to print convert feet to meter

Java Final keyword

Introduction : java final keyword The final keyword present in Java programming language is generally used for restricting the user. …

Read more

C++ Memory Management: new and delete

C++ Memory Management We know that arrays store contiguous and the same type of memory blocks, so memory is allocated …

Read more