Write a program to convert temperature in Celcius to temperature in Fahrenheit

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 :)



  1. #include <iostream.h>
  2. #include <conio.h>
  3. void main()
  4. {
  5. clrscr();
  6. //Coding by: Snehil Khanor
  7. //http://WapCPP.blogspot.com
  8. int c,f;
  9. cout<<"enter temperature in celcius:. ";
  10. cin>>c;
  11. f=1.8*c+32;
  12. cout<<"Temperatur in Farenheit= "<<f;
  13. getch();
  14. }

Check out this stream