img
Question:
Published on: 21 November, 2024

Write a C program to convert Centigrade temp into Farenhite temp.

Answer:

 

#include<stdio.h>
#include<conio.h>
main()
{
	float a,b;
	printf("\n Enter any C temp");
	scanf("%f",&a);
	b=((9.0*a)/5.0)+32.0;
	printf("\n The F temp=%f",b);
	getch();
}

 

Output:

Random questions