This commit is contained in:
2024-02-27 19:41:27 +03:00
parent 0ab1badbbf
commit 181560baae
4 changed files with 47 additions and 2 deletions

View File

@@ -11,10 +11,14 @@ int main(void) {
scanf("%d", &grade);
if(grade == 1) {
fail = fail + 1;
} else {
total = total + 1;
} else if(grade == 2) {
pass = pass + 1;
total = total + 1;
} else {
printf("%s\n","Invalid Number PLEASE ENTER A VALID NUMBER!(1 or 2)");
scanf("%d", &grade);
}
total = total + 1;
}
puts((pass >= 8) ? "Bonus to Instructer!" : "");
}