Click_here's got the idea. Tried to edit this as best I could, probably some errors. I've got to run right now but I'll be back on here asap. Thanks again everyone.
Code:
#include <stdio.h>
int main(int argc, const char * argv[])
{
char l;
int meter3;
puts("Check status lights. 'r' for red, 'g' for green, and 'a' for amber.");
scanf("%c", &l);
if(l == 'r')
{
{
printf("Shut off all input lines and check meter #3.");
scanf("%i", &meter3);
if(meter3 >=50)
{
char pres;
printf("Check main line for test pressure. Input 'n' for normal or 'x' for abnormal.");
scanf("%c", &pres);
if(pres == 'n')
printf("input n");
else if(pres == 'x')
printf("input x");
}
}
}
if(l == 'g')
{
printf("Do restart procedure.");
}
if(l == 'a')
{
printf("Check fuel line service routine.");
}
}