URI solution of 1052 - Month
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| #include <stdio.h> int main() { int a; scanf ( "%d" ,&a); if (a==1) printf ( "January\n" ); if (a==2) printf ( "February\n" ); if (a==3) printf ( "March\n" ); if (a==4) printf ( "April\n" ); if (a==5) printf ( "May\n" ); if (a==6) printf ( "June\n" ); if (a==7) printf ( "July\n" ); if (a==8) printf ( "August\n" ); if (a==9) printf ( "September\n" ); if (a==10) printf ( "October\n" ); if (a==11) printf ( "November\n" ); if (a==12) printf ( "December\n" ); return 0; }
|
No comments:
Post a Comment
Thank you for commenting. Please wait for response :)