0

Help me find the error

I tried to write a program to find out the date of the first Monday of a given month of a given year. For some inputs, it's evaluating the correct output but it's going wrong elsewhere. Please show me the bug if you can. here's my code : https://code.sololearn.com/cTin3HwLp85P/#cpp

20th Jun 2019, 1:20 PM
Pankaj Mandal
Pankaj Mandal - avatar
1 ответ
0
just an educated guess without looking too much at your code: Leap Years? it doesn't look like you're accounting for February's variable amount of days. see this for reference: https://code.sololearn.com/cOOB2JwUaUC8/?ref=app
2nd Feb 2020, 8:08 AM
grdr