C++ program – Convert Height to feet and Inches

by Nideesh C on May 1, 2011 · 0 comments

in C++




/* 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 Plugin for WordPress, Blogger...
Be Sociable, Share!

Related posts:

  1. 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
  2. Sample – convert temperatures
  3. Sample – Program to convert temperatures from Celsius to Fahrenheit and vice versa.
  4. C++ program – Implementation of class
  5. Sample – Program to convert days into years and weeks.

Leave a Comment

Previous post:

Next post: