2 Respuestas
+ 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
0
Thank you Soumik