Â
In this, we are going to see a program in which we will be converting temperature given in Celsius to fahrenheit in C Programming Language.
//Write a program for converting temperature given in C to fahrenheit
#include <stdio.h>
void main()
{
float c, f;
printf("Enter the temperature in Celcius : ");
scanf("%f", &c);
f = (9.0 / 5.0 * c) + 32;
printf("The temperature in fahrenheit is %f ", f);
}
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP