SHARE
TWEET

ovo ?

a guest Nov 18th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  int godina, mesec, dan;
  2.  
  3.  
  4.   day++;  // sutra
  5.  
  6.   int dan_per_mesec = 31;
  7.   if (mesec == 4 || mesec == 6 || mesec == 9 || mesec == 11) {
  8.     dan_per_mesec = 30;
  9.   } else if (mesec == 2) {
  10.     dan_per_mesec = 28;
  11.     if (godina % 4 == 0) {
  12.       dan_per_mesec = 29;
  13.       if (godina % 100 == 0) {
  14.         dan_per_mesec = 28;
  15.         if (godina % 400 == 0) {
  16.           dan_per_mesec = 29;
  17.         }
  18.       }
  19.     }
  20.   }
  21.   if (day > dan_per_mesec) {
  22.     day = 1;
  23.     mesec++;
  24.     if (mesec > 12) {
  25.       mesec = 1;
  26.       godina++;
  27.     }
  28.   }
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
 
Top