+ 3

[Solved]Method Confusion

I want to write a program which takes the user input then pass through a method and give the output.This code 👇 did exactly what I wanted but why must a number ex.0 placed in the parenthesis when calling the method🤔.The number too becomes useless because the number's output is not return but the user's input rather?Is there anyway I can avoid it? Thanks https://code.sololearn.com/cDF19iXnFMit/?ref=app.

21st Mar 2021, 4:18 PM
!Derrickee
!Derrickee - avatar
4 Respuestas
+ 5
Martin Taylor Thank you very much😁. With the help of your explain I can now continue with the methods, argumens and return types
21st Mar 2021, 7:57 PM
!Derrickee
!Derrickee - avatar