Saturday, March 20, 2021

2.12. Write a program that read temperature in Fahrenheit and display in Celsius.

#include<stdio.h>
#include<conio.h>
void main()
{
float c,f;
clrscr();
printf(C=  ");
scanf("%f", &c);
f=(float) 9/5*c+32;
printf("F= %f", f);
getch();
}

No comments:

Post a Comment