Monday, 8 June 2015

2.Aim -  WAP To Convert Celsius Into Farenheit
Code-

#include<stdio.h>
#include<conio.h>
void main ()
{
 float cel, faren;
 clrscr ();
 printf ("Enter The Temperature In Degree Celsius: ");
 scanf ("%f", &cel);
 faren=(9*cel/5)+32;
 printf ("The Equivalent Temperature In Farenheit is : %f", faren);
 getch ();
}

OUTPUT
Enter The Temperature In Degree Celsius: -45
The Equivalent Temperature In Fahrenheit is : -113



No comments:

Post a Comment