Advertisement
Guest User

c_test

a guest
Jul 22nd, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.    
  5.     int id, d, w, y;
  6.    
  7.     scanf("%d", &id);
  8.    
  9.     y = id/365;
  10.     id = id%365;
  11.     w = id/7;
  12.     id = id%7;
  13.     d = id;
  14.    
  15.     printf("%d %d %d", y, w, d);
  16.  
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement