learn_code_with_me();

Sunday, May 19, 2013

C Program to Convert Fahrenheit to Celsius

by Anouar 0 comments

Tag


Share this post:

Convert Fahrenheit to Celsius.
#include <stdio.h>

int main () {
	float fa,ce;
	printf(" Enter the Temperature in Celsius: \n");
	scanf("%f",&ce);
	fa= (9.0/5.0*ce)+32;
	printf("\n Temperature in Fhrenheit=%f",fa);
return 0;
}
output:
Enter the Temperature in Celsius: 22 
Temperature in Fhrenheit=71.599998

Comments 0 comments

Anouar Rahil
A newbie programmer, Blogger, Net Surfing.
anouar.r@live.com

Subscribe feeds via e-mail
Subscribe in your preferred RSS reader

Subscribe feeds rss Recent Entries

Advertise on this site Sponsored links

Categories

Popular Posts

My Photos on flick r

Subscribe feeds rss Recent Comments

Technorati

Technorati
My authority on technorati
Add this blog to your faves