Program to convert temperature in Celsius to Fahrenheit in c++ and C with flowchart
Last modified on May 26th, 2018 at 2:04 pm
Program to convert a temperature in Celsius to Fahrenheit in c++ and C with the flowchart
In this tutorial, we will learn about the followings;
- Flowchart of a program to convert a temperature in Celsius to Fahrenheit
- Program to convert a temperature in Celsius to Fahrenheit in c++
- Program to convert a temperature in Celsius to Fahrenheit in C
Flowchart of a program to convert a temperature in Celsius to Fahrenheit

Program to convert a temperature in Celsius to Fahrenheit in c++
1 2 3 4 5 6 7 8 9 10 11 12 13 | #include<iostream> #include<conio.h> using namespace std; int main() { float C; float F; cout<<"input temperature in Celsius is= "; cin>>C; F= C * 9/5 + 32; cout<<"Temperature in Fahrenheit is= "<<F; getch(); } |
Output

Program to convert a temperature in Celsius to Fahrenheit in C
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #include <stdio.h> int main() { float C; float F; printf("input temperature in Celsius: "); scanf("%f", &C); F = (C * 9 / 5) + 32; printf("%.2f Celsius = %.2f Fahrenheit=", C, F); return 0; } |
Output
