You are viewing a single comment's thread. Return to all comments →
c#
public static int libraryFine(int d1, int m1, int y1, int d2, int m2, int y2)
{ int fine = 0; if (y1 > y2) { fine = 10000; return fine; } else if (y1 == y2 && m1 > m2) { fine = 500 * (m1 - m2); return fine; } else if (y1 == y2 && m1 == m2 && d1 > d2) { fine = 15 * (d1 - d2); return fine; } else return fine; }
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#
public static int libraryFine(int d1, int m1, int y1, int d2, int m2, int y2)