This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream.h> | |
#include<stdlib.h> | |
void main() //Program body start | |
{ | |
int tc,tf; //variable declaration | |
cout<<"Enter the temperature in Celsius:\t"; //show output Massage | |
cin>>tc; //get input | |
tf=9/5*tc+32; //Arithmatic operation | |
cout<<"Temperature in Fahrenheit:\t"<<tf<<endl; | |
system("pause"); //For output screen still display | |
} |
Output:
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.