Sunday 7 April 2013

programe to convert celcius to faren in C


#include<stdio.h>
#include<conio.h>
void main()
{
float cel,faren;
clrscr();
printf("enter temperature in celcius");
scanf("%f",&cel);
faren=9.0/5.0*cel+32;
printf("temperature in fahrenheit is %f",faren);
getch();
}

Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...

0 comments:

Post a Comment