- 1
Write a short program that asks your height in centimetres and then converts your height to feet and inches.
1foot=12inches & 1inches=2.54 cm.
6 ответов
+ 7
the program is
#include <iostream.h >
void main(){
double height, inches, foot;
cout<<"Enter your height in cm";
cin>>height;
inches=height/2.54;
feet=inches/ 12 ;
cout<< " the height in foot is "<<feet<<" and inches is"<<inches<<".";
}
+ 4
Does it have to be in C++
+ 1
yes Tech tro it has to be in C++
0
can anyone write it in java
0
is it in turbo or gcc
0
write it in oopascal