Write a C Program to convert temperature in celsius to Fahrenheit and vice versa
Answers
Answered by
4
Explanation:
C program to convert Celsius to Fahrenheit:
#include <stdio.h>
int main()
{
printf("Enter temperature in Celsius: ");
scanf("%f", &celsius);
//celsius to fahrenheit conversion formula.
fahrenheit = (celsius * 9 / 5) + 32;
printf("%.2f Celsius = %.2f Fahrenheit", celsius, fahrenheit);
Similar questions
Math,
3 hours ago
Math,
3 hours ago
Computer Science,
8 months ago
Computer Science,
8 months ago
Math,
8 months ago