C++ Program & Algorithm Convert Celsius to Fahrenheit

Write a program that will ask for temperature in Celsius and display it in Fahrenheit.
- C Program to Find Greater of Two Entered Numbers
- Program to Create Database and Retrieve Information (C++)
- C++ – Calculate Factorial using For, While, Do While
- Conversion Routine to Convert the Objects of Both Types
- Program Distance with Data Members Meter, Centimeter and Kilometer
Algorithm
- Step 1: Start
- Step 2: Read temperature in Celsius, c
- Step 3: f=(9*c)/5+32
- Step 4: Display temperature in Fahrenheit, f
- Step 5: End
Source Code
#include<iostream> #include<conio.h> using namespace std; int main () { float x, cel,fah; cout<<"Input temperature in celsius:"<endl; cin>>cel; fah=(9*cel)/5+32; cout<<endl<<"the temperature in fahrenheit is "<<fah <<endl; getch(); }