Q
codeup 1070


C code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| #include <stdio.h>
int main(void) { int a; scanf("%d",&a); switch(a) { case 12: case 1: case 2: printf("winter"); break; case 3: case 4: case 5: printf("spring"); break; case 6: case 7: case 8: printf("summer"); break; case 9: case 10: case 11: printf("fall"); break; } return 0; }
|
Author:
Slay
Permalink:
http://sean-baek.github.io/2023/04/28/codeup-1070/
License:
Copyright (c) 2021 CC-BY-NC-4.0 LICENSE
Slogan:
Do you believe in DESTINY?