1
0
mirror of https://github.com/renbaoshuo/202401-programming-assignments.git synced 2024-12-16 15:44:39 +00:00

22 lines
330 B
C
Raw Normal View History

2024-10-30 23:00:18 +08:00
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
if (n >= 1 && n <= 10) {
printf("%d\n", n);
} else if (n == 11) {
printf("J\n");
} else if (n == 12) {
printf("Q\n");
} else if (n == 13) {
printf("K\n");
} else {
printf("NO\n");
}
return 0;
}