Вы находитесь на странице: 1из 1

Program to convert temperature from degree centigrade to Fahrenheit.

#include<iostream.h> #include<conio.h> void main() { float c,f; clrscr(); cout<<"Enter temperature in centigrade:"; cin>>c; f=(1.8*c)+32; cout<<"Temperature in Fahrenheit is:"<<f; getch(); }

Output:

Enter temperature in centigrade:10 Temperature in Fahrenheit is:50