mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-12-03 17:26:21 +00:00
20 lines
264 B
C
20 lines
264 B
C
|
#include <stdio.h>
|
||
|
|
||
|
int main() {
|
||
|
int x;
|
||
|
|
||
|
scanf("%d", &x);
|
||
|
|
||
|
if (x == 5) {
|
||
|
printf("6\n");
|
||
|
} else if (x == 6) {
|
||
|
printf("10\n");
|
||
|
} else if (x == 7) {
|
||
|
printf("8\n");
|
||
|
} else {
|
||
|
printf("4\n");
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|