#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();
}
#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();
}