Advertisement
Guest User

zad2

a guest
Oct 20th, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.49 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a;
  5.     scanf("%d",&a);
  6.     if(a%7==0)
  7.     {
  8.         printf("Vtornik\n");
  9.     }
  10.     if(a%7==1)
  11.     {
  12.         printf("Sreda\n");
  13.     }
  14.     if(a%7==2)
  15.     {
  16.         printf("Cetvrtok\n");
  17.     }
  18.     if(a%7==3)
  19.     {
  20.         printf("Petok");
  21.     }
  22.     if(a%7==4)
  23.     {
  24.         printf("Sabota\n");
  25.     }
  26.     if(a%7==5)
  27.     {
  28.         printf("Nedela\n");
  29.     }
  30.     if(a%7==6)
  31.     {
  32.         printf("Ponedelnik");
  33.     }
  34.     return 0;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement