Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int f, g, h, j, q, w, e;
- scanf("%d", &f);
- g=f/365;
- j=g/4;
- q=f-j;
- w=q/365;
- e=q%365;
- printf("%d years, %d days.", w, e);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement