+ 1

Should I place the Factorial method above Main method?

Why? Please in layman terms. https://code.sololearn.com/cUIJM1pNmxZm/?ref=app

7th Nov 2022, 3:24 AM
Mozzie
Mozzie - avatar
1 Antwort
+ 6
The order of your method declarations does not affect the result, compilation is the same anyway. I think it's a question of style. I like having the Main method on top, the execution starts there anyway, so when you start reading a code, it helps to understand what is happening on the big picture.
7th Nov 2022, 4:35 AM
Tibor Santa
Tibor Santa - avatar