Advertisement
Z_Ivanovska

Untitled

Oct 21st, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include  <stdio.h>
  2. int main()
  3. {
  4.     int a, year;
  5.     scanf("%d", &a);
  6.     if(a%2==1)
  7.     {
  8.         printf("Mesecot ima 31 den");
  9.     }
  10.     else if((a>2) && (a%2==0))
  11.     {
  12.         printf("Mesecot ima 30 dena");
  13.  
  14.     }
  15.     else if(a==2)
  16.     {
  17.         printf("Mesecot ima 28 dena");
  18.     }
  19.         return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement