Write a program in C to change the inputted Centigrade temperature to its corresponding Fahrenheit value.
- Get link
- X
- Other Apps
// centigrade-to-fahrenheit.c
#include <stdio.h>
#include <conio.h>
int main()
{
float inCen;
printf("Enter a centigrade value:\n");
scanf("%f", &inCen);
printf("Fahrenheit value of %f°C is: %f°F", inCen, inCen*1.8+32);
getch();
return 0;
}
https://drive.google.com/file/d/1ASRQ0gRVjX5C3UYk4mcSDcW_Cn_XxAgY/view?usp=sharing
- Get link
- X
- Other Apps
Comments
Post a Comment