You are viewing a single comment's thread. Return to all comments →
int main(){ int d1; int m1; int y1; cin >> d1 >> m1 >> y1; int d2; int m2; int y2; cin >> d2 >> m2 >> y2; int fine = 0; if(y1d2 && m1==m2 &&y1==y2){ fine=15 * (d1-d2); cout<m2 && y1==y2){ fine=500 * (m1-m2); cout<
return 0;
}
this is my code
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 →
int main(){ int d1; int m1; int y1; cin >> d1 >> m1 >> y1; int d2; int m2; int y2; cin >> d2 >> m2 >> y2; int fine = 0; if(y1d2 && m1==m2 &&y1==y2){ fine=15 * (d1-d2); cout<m2 && y1==y2){ fine=500 * (m1-m2); cout<
}
this is my code