Temperature is taken as input in celcius by user and then converted into Fahrenheit and displayed as output
Select To use this code as it is.. select and copy paste this code into code.cpp file :)
- #include <iostream.h>
- #include <conio.h>
- void main()
- {
- clrscr();
- //Coding by: Snehil Khanor
- //http://WapCPP.blogspot.com
- int c,f;
- cout<<"enter temperature in celcius:. ";
- cin>>c;
- f=1.8*c+32;
- cout<<"Temperatur in Farenheit= "<<f;
- getch();
- }
0 comments:
Post a Comment