SHARE
TWEET

c_test

a guest Jul 22nd, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top