Try this:
Code:
#include <stdio.h>
int main(void)
{
int Fahrenheit, Celsius, pressure, miles, feet, minutes, seconds, air, dew;
float inches;
printf("Welcome to \"Weather Wizard\" Unit Convertor!\n");
printf("Please enter values in 'ENGLISH' units: \n");
printf("Enter Fahrenheit temperature: ");
scanf("%d", &Fahrenheit);
printf("\n");
printf("Enter pressure in inches: ");
scanf("%.2f", &inches);
while ( getchar() != '\n' );
printf("\n");
printf("Please enter values in 'METRIC' units: \n");
printf("Enter Celsius temperature: ");
scanf("%d", &Celsius);
printf("\n");
printf("Enter pressure in millibars: ");
scanf("%d", &pressure);
printf("\n");
printf("Wind Calculator\n");
printf("Enter miles and feet traveled: ");
scanf("%d %d", &miles, &feet);
printf("Enter number of minutes and seconds elapsed: ");
scanf("%d %d", &minutes, &seconds);
printf("\n");
printf("Humidity Calculator\n");
printf("Enter Fahrenheit air temperatre and dew-point temperature: ");
scanf("%d %d", &air, &dew);
printf("\n");
printf("**********\n");
return 0;
}
scanf was being touchy again, you need to consider what characters are remaining in the input stream before reading anything else or bad things tend to happen. Most of the time a floating newline will hurt interactive programs, so it's advisable to not use scanf at all.
-Prelude