Monday, June 24, 2013

Write a program to convert degree to Fahrenheit?

Problem: 
convert the value in degree into Fahrenheit , and relationship between degree and Fahrenheit is
F= D*1.8+32

Solution:

#include<stdio.h>
#include<conio.h>

void main()
{
float deg,frn;
clrscr();
printf("enter the degree");
scanf("%f",&deg);
frn=deg*1.8+32;
printf("the %.2fdeg---> %.2f F",deg,frn);
getch();
}


Output :


Like the Post? Do share with your Friends.

No comments:

Post a Comment