Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int x;
- scanf("%d",&x);
- if(x%7==0)
- {
- printf("denot e cetvrtok");
- }
- else if (x%7==1)
- {
- printf("petok");
- }
- else if (x%7==2)
- {
- printf("sabota");
- }
- else if (x%7==3)
- {
- printf("nedela");
- }
- else if (x%7==4)
- {
- printf("ponedelnik");
- }
- else if (x%7==5)
- {
- printf("vtornik");
- }
- else if (x%7==6)
- {
- printf("sreda");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement