471,084 Members | 817 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,084 software developers and data experts.

Conversion of Fahrenheit to Celsius

I need to help getting started with my program
Oct 14 '06 #1
2 7195
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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.