468,513 Members | 1,837 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

Conversion of Fahrenheit to Celsius

I need to help getting started with my program
Oct 14 '06 #1
2 7139
it very easy to make such a program

Expand|Select|Wrap|Line Numbers
  1. #include<iostream.h>
  2. void main()
  3. {
  4.  
  5. float cel,faren;
  6. cout<<"enter temprature in fahrenhite";
  7. cin>>faren;
  8. cel=(faren-32)*5/9;
  9. cout<<"temprature in celcius is:"<<cel;
  10. }
  11.  
  12.  
  13. so simple.............
Oct 14 '06 #2
RADAR
21
/*IN C [COMPILER VISUAL STUDIO 6,0]*/

#include <stdio.h>
int main(void) {
float degfah,degcel;

printf("Enter degree in celcius: ");

scanf("%f",&degcel);

degfah=degcel*1.8+32;

printf("%.1f Degree Celcius is %.1f Degree Fahrenheit",degcel,degfah);

}
Oct 14 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by weasel | last post: by
1 post views Thread by deanfamily11 | last post: by
4 posts views Thread by nyy | last post: by
11 posts views Thread by arnuld | last post: by
21 posts views Thread by AsheeG87 | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.