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 c,f; //variable declaration | |
cout<<"Enter the temperature in Fahrenheit:\t"; //show output Massage | |
cin>>f; //get input | |
c=5/9*f-32; //Arithmatic operation | |
cout<<"Temperature in Celsius:\t\t"<<c<<endl; | |
system("pause"); | |
} |
Output:
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.