We Post only the Best Stuff

Convert Foots to Centimeters

Previous Program »» C Program to check whether a number is divisible by other or not

This program is somewhat tricky. Some basics you should know about this program include:-
1 foot = 12 inches
1 Inch = 2.54 Cms

Now the coding partstarts which goes like this:-

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=a,b,c;
printf("Enter the Foot: ");
scanf("%d",&a);
printf("Enter the Inches: ");
scanf("%d",&b);
c=(a/2.54*12)+(b*2.54);
printf("Height in centimetres is = %d",c);
getch();
}

Next Program »» C Program to Calculate Factorial of given number

For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated
Support : Contact Us | Privacy Policy | Site Map
Copyright © 2013. Tech Jatt - All Rights Reserved
Site Design by Nitin Kundu Licensed to Tech Jatt
Proudly powered by Blogger