#include <stdio.h>
#include <stdlib.h>
int main()
{
//1 foot = 12 inch
int f,in;
float cm,m;
printf("Enter feet value: ");
scanf("%d",&f);
in = f*12; //foot to inches
printf("in %d foot: %d inches ", f, in);
printf("\n\nEnter centimetre value: ");
scanf("%f",&cm);
m = cm/100; //cm to meters
printf("in %4.2f cm: %4.2f meters\n ", cm ,m);
system("pause");
return 0;
}
Comments
Leave a comment