Write a Program to Convert Celcius To Fahrenheit in c program.
//Write a Program to Convert Celcius To Fahrenheit.
#include<stdio.h>
#include<conio.h>
void main()
{
int c;
float f;
printf("\n Enter a celsius=");
scanf("%d",&c);
f=c*9/5+32;
printf("\n Fahrenheit=%f",f);
getch();
}
Output:-
Enter a Celsius=10
Fahrenheit=50.000000
Related Program (Please Check)
0 Comments