Pages

Weather Temperature Conversion Calculator with heading

Friday 19 April 2013

#include <stdio.h>

#include <conio.h>
main()
{
      int farh, cels;
      int lower=0, upper=300, step=20;
      farh=lower;
      printf("\"Weather Temperature Conversion Calculator\"\n\n");
      printf("Fahrenhiet\tCelsius\n");
      while(farh<=upper)
      {
                        cels=5*(farh-32)/9;
                        printf("%d\t\t%d\n", farh, cels);
                        farh=farh+step;                
      }
      getch();
}

 

Search Box

Most Reading

Contact Form

Name

Email *

Message *