- 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.

19th Nov 2016, 5:31 AM
Mitu Ahmed
Mitu Ahmed - avatar
6 odpowiedzi
+ 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<<"."; }
19th Nov 2016, 9:35 AM
Sandeep Chatterjee
+ 4
Does it have to be in C++
19th Nov 2016, 9:30 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
+ 1
yes Tech tro it has to be in C++
19th Nov 2016, 2:54 PM
Mitu Ahmed
Mitu Ahmed - avatar
0
can anyone write it in java
12th Sep 2018, 9:24 AM
Chodisetti Purna Lakshmi Bhanuja
Chodisetti Purna Lakshmi Bhanuja - avatar
0
is it in turbo or gcc
23rd Oct 2018, 1:17 AM
Abhishek V
0
write it in oopascal
28th Oct 2019, 11:46 PM
Abiodun