#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
int in, feet, cm;
cout<< "\n Enter your height in feet and inches respectively :";
cout<<"\nYour height is " << feet <<"ft" << in << "inches";
cin >> feet >> in;
in = in + feet * 12;
cm = in * 2.54;
cout << "\n Your height in cm. is " << cm;
getch();
}
No comments:
Post a Comment