+ 1

Please correct it so it evaluates.

https://code.sololearn.com/co4d0OiZEJSb/?ref=app

2nd Aug 2020, 5:18 AM
TeaserCode
3 Answers
+ 4
list of errors:- 1) variables *a* and *N* are used before initialisation 3) displaying the result after the loop hence will display only the last multiple 2) syntax of *return* statement is wrong Here's the fix👇 https://code.sololearn.com/cYTcd6vQ5Mgg/?ref=app
2nd Aug 2020, 5:24 AM
Arsenic
Arsenic - avatar
+ 1
let the number of multiplies be according to the choice of user. like this https://code.sololearn.com/cj85mOU2AY3X/#cpp
2nd Aug 2020, 5:49 AM
Shrishti Dogra
Shrishti Dogra - avatar
+ 1
One more question to explain. Whose I don't know before. Can you explain me why it must be variable reads two times before loop and in the loop?
2nd Aug 2020, 5:50 AM
TeaserCode