# C program to convert celsius to Fahrenheit

Hello coders, in this post we will how to write C program to convert celsius to Fahrenheit. This is a very basic C program.

As you already know that this site does not contain only c programming solutions here, you can also find the solution for other problems. I.e.Â Web Technology,Â Data Structures,Â RDBMS Programs,Â Java Programs Solutions, Â Fiverr Skills Test answers,Â Google Course Answers,Â Linkedin Assessment,Â Leetcode Solutions, andÂ Coursera Quiz Answers.

if you want to learn C programming free of cost please visit:

## C program to convert celsius to Fahrenheit

```#include <stdio.h>
int main()
{
float celsius, fahrenheit;
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);
return 0;
}```

Output

```Enter temperature in Celsius: 10
10.00 Celsius = 50.00 Fahrenheit```

### Conclusion

I hope after going through this post, you understandÂ how to write a C program to convert celsius to Fahrenheit, if there is any case program is not working and showing an error please let me know in the comment section.

Sharing Is Caring