[6 / 1 / ?]
Quoted By:
Hello /g/ noob programmer here I need help with this I don't understand why this fucking program keeps says illegal else without matching if..
#include<stdio.h>
int main(void)
{
int time = 0;
int minutes = 0;
char paint_name[21];
int i;
printf("What is the name of the paint");
scanf("%20s", &paint_name);
printf("What is the time taken for the paint to dry in hours and minutes");
scanf("%d", &time);
scanf("%d", &minutes);
printf("Input an number of hours to check the status");
scanf("%d", &i);
{ if (time < i)
printf("qualified\n");
printf("%s meets the quick drying status with a time of %d time and %d minutes\n", paint_name, time, minutes);
}
else
{
printf("not qualified\n");
printf("%s does not meet the quick drying status with a time of %d time and %d minutes\n", paint_name, time, minutes);
}
return 0;
}
#include<stdio.h>
int main(void)
{
int time = 0;
int minutes = 0;
char paint_name[21];
int i;
printf("What is the name of the paint");
scanf("%20s", &paint_name);
printf("What is the time taken for the paint to dry in hours and minutes");
scanf("%d", &time);
scanf("%d", &minutes);
printf("Input an number of hours to check the status");
scanf("%d", &i);
{ if (time < i)
printf("qualified\n");
printf("%s meets the quick drying status with a time of %d time and %d minutes\n", paint_name, time, minutes);
}
else
{
printf("not qualified\n");
printf("%s does not meet the quick drying status with a time of %d time and %d minutes\n", paint_name, time, minutes);
}
return 0;
}
