Easy15 pts
Library Fine
Return d1,m1,y1; due d2,m2,y2. Fine: 0 if on/before. 15*(d1-d2) if same month/year, 500*(m1-m2) if same year, 10000 if y1>y2.
Input
d1 m1 y1\nd2 m2 y2
Output
Fine amount.
Sample
9 6 2015 6 6 2015
Expected
45
Loading editor…
Output
No output yet. Run your code to see results.