Advertisement
DIUBD

URI Problem 1052

Oct 19th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.67 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. void main()
  4. {
  5.     int n;
  6.     scanf("%d",&n);
  7.     if(n==1)
  8.         printf("January\n");
  9.     else if(n==2)
  10.         printf("February\n");
  11.     else if(n==3)
  12.         printf("March\n");
  13.     else if(n==4)
  14.         printf("April\n");
  15.     else if(n==5)
  16.         printf("May\n");
  17.     else if(n==6)
  18.         printf("Jun\n");
  19.     else if(n==7)
  20.         printf("July\n");
  21.     else if(n==8)
  22.         printf("August\n");
  23.     else if(n==9)
  24.         printf("September\n");
  25.     else if(n==10)
  26.         printf("October\n");
  27.     else if(n==11)
  28.         printf("November\n");
  29.     else if(n==12)
  30.         printf("December\n");
  31.     else
  32.         printf("Error\n");
  33.  
  34.  
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement