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",°);
frn=deg*1.8+32;
printf("the %.2fdeg---> %.2f F",deg,frn);
getch();
}
Output :
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",°);
frn=deg*1.8+32;
printf("the %.2fdeg---> %.2f F",deg,frn);
getch();
}
Output :
No comments:
Post a Comment