/* program to ask your height & convert into feet & inches */
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float h,i,f;
cout<<"Enter your heught in cms :"<<endl;
cin>>h;
f=h/30.48;
cout<<"Height in feets :"<<f<<endl;
i=h/2.54;
cout<<"Height in inch :"<<i<<endl;
getch();
}
Not Satisfied ? Just search & get the result
Related posts:
- C program to accept the height of a person in centimeter and categorize the person based on height as taller, dwarf and average height person
- Sample – convert temperatures
- Sample – Program to convert temperatures from Celsius to Fahrenheit and vice versa.
- C++ program – Implementation of class
- Sample – Program to convert days into years and weeks.
