You are viewing a single comment's thread. Return to all comments →
C++
int libraryFine(int d1, int m1, int y1, int d2, int m2, int y2) { int res = 0; if (y1 > y2) { res = 10000; } else if (y1 == y2 & m1 > m2) { res = (m1 - m2) * 500; } else if (y1 == y2 & m1 == m2 & d1 > d2) { res = (d1 - d2) * 15; } return res; }
Seems like cookies are disabled on this browser, please enable them to open this website
Library Fine
You are viewing a single comment's thread. Return to all comments →
C++