Conversion of Fahrenheit to Celsius

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • reicara85
    New Member
    • Oct 2006
    • 1

    Conversion of Fahrenheit to Celsius

    I need to help getting started with my program
  • muzammil azmi
    New Member
    • Oct 2006
    • 3

    #2
    it very easy to make such a program

    Code:
    #include<iostream.h>
    void main()
    {
    
    float cel,faren;
    cout<<"enter temprature in fahrenhite";
    cin>>faren;
    cel=(faren-32)*5/9;
    cout<<"temprature in celcius is:"<<cel;
    }
    
    
    so simple.............

    Comment

    • RADAR
      New Member
      • Oct 2006
      • 21

      #3
      /*IN C [COMPILER VISUAL STUDIO 6,0]*/

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

      printf("Enter degree in celcius: ");

      scanf("%f",&deg cel);

      degfah=degcel*1 .8+32;

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

      }

      Comment

      Working...