Added lect 926 and new output folder
This commit is contained in:
parent
0bd3a13c0b
commit
cb58f78d40
28
csci218/Lect/926.c
Normal file
28
csci218/Lect/926.c
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
int main() {
|
||||||
|
char grade;
|
||||||
|
|
||||||
|
printf("Enter grade letter in Caps: ");
|
||||||
|
scanf("%c", &grade);
|
||||||
|
grade = toupper(grade);
|
||||||
|
switch(grade) {
|
||||||
|
case 'A':
|
||||||
|
|
||||||
|
case 'B':
|
||||||
|
printf("Good\n");
|
||||||
|
break;
|
||||||
|
case 'C':
|
||||||
|
|
||||||
|
case 'D':
|
||||||
|
printf("pass\n");
|
||||||
|
break;
|
||||||
|
case 'F':
|
||||||
|
printf("fail\n");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
printf("Confused\n");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
BIN
csci218/Lect/output/926.o
Executable file
BIN
csci218/Lect/output/926.o
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user