Saturday, March 20, 2021

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

#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