C++ Program – Convert Celsius To fahrenheit

by Nideesh C on May 1, 2011 · 0 comments

in C++




/* program to read temp in Celsius & display in Fahrenheit */

 #include<iostream.h>
 #include<conio.h>
 void main()
 {
 clrscr();
 float k,c;
 cout<<"Enter the temp in Celsius :";
 cin>>c;
 k=(9/5)*c+32;
 cout<<"Temperature in Farenheit = "<<k;
 getch();
 }  



Not Satisfied ? Just search & get the result

Related Posts Plugin for WordPress, Blogger...
Be Sociable, Share!

Related posts:

  1. Sample – Program to convert temperatures from Celsius to Fahrenheit and vice versa.
  2. C++ program – Implementation of class
  3. Sample – convert temperatures
  4. C++ program – Convert Height to feet and Inches
  5. C++ program – Swap two variables using function overloading

Leave a Comment

Previous post:

Next post: