1.
Write a C program to get temperature in celsius from the user
and then print the temperature in fahrenheit.
#include<stdio.h>
#include<conio.h>
int main()
{
float c, f;
printf("Enter temperature in Celsius:
");
scanf("%f", &c);
f = ((c * 9)/5) + 32;
printf("%.2f Celsius = %.2f
Fahrenheit", c, f);
return 0;
}
No comments:
Post a Comment