Advertisement
elena_gjorgjioska

Untitled

Oct 17th, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.54 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int x;
  7.     scanf("%d",&x);
  8.     if(x%7==0)
  9.     {
  10.         printf("denot e cetvrtok");
  11.     }
  12.     else if (x%7==1)
  13.     {
  14.         printf("petok");
  15.     }
  16.     else if (x%7==2)
  17.     {
  18.         printf("sabota");
  19.     }
  20.     else if (x%7==3)
  21.     {
  22.         printf("nedela");
  23.     }
  24.     else if (x%7==4)
  25.     {
  26.         printf("ponedelnik");
  27.     }
  28.     else if (x%7==5)
  29.     {
  30.         printf("vtornik");
  31.     }
  32.     else if (x%7==6)
  33.     {
  34.         printf("sreda");
  35.     }
  36.     return 0;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement