j

Tuesday, 3 November 2015

Write a program that take user height in feet's and convert it into inches, centimeter and mili meter.



#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float h,inc,cm,mm;
printf("Enter your height in feet");
scanf("%d",&h);
inc=h*12;
cm=inc*2.54;
mm=inc*5.4;
printf("Your height in inch is %d\n",inc);
printf"Your height in centimeter %d\n",cm);
printf"Your height in milimeter %d\n",mm);
getch();
}

Subscribe to this Blog via Email :