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

Python Examples

Introduction: Python Examples are the basic programming concepts of python like python syntax,python data types,,python operators,python if else,python comments etc.. …

Read more

C String Functions

C String Functions perform certain operations, It provides many useful string functions which can come into action. The <string.h> header …

Read more