This commit is contained in:
2026-03-18 00:46:30 -07:00
commit 56b1607ec5
316 changed files with 266132 additions and 0 deletions

29
c/switch.c Normal file
View File

@@ -0,0 +1,29 @@
#include <stdio.h>
enum options {
STOP = 'q',
CONTINUE = 'c',
NEW = 'n',
};
int main() {
char optbuff[4];
while (optbuff[0] != STOP) {
printf("choose sumth");
scanf("%4s", optbuff);
switch (optbuff[0]) {
case STOP:
printf("stop\n");
break;
case CONTINUE:
printf("continue\n");
break;
break;
}
return 0;
}
}