2 Answers
+ 7
The leap function prints stuff so it should have a return type of void as it doesn't return anything. y1 is a variable which is never initialized. I think you wanted to use x instead. Laslty, to call a method, you need to pass parameters, if any, in brackets after the name. https://code.sololearn.com/cieh1rbAOp2E/?ref=app
17th Apr 2021, 3:54 PM
Soumik
Soumik - avatar
0
Thank you Soumik
18th Apr 2021, 9:41 AM
Ira Sarkar
Ira Sarkar - avatar