Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int id, d, w, y;
- scanf("%d", &id);
- y = id/365;
- id = id%365;
- w = id/7;
- id = id%7;
- d = id;
- printf("%d %d %d", y, w, d);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement