Please tell me where my factorial is going wrong | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please tell me where my factorial is going wrong

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

21st Mar 2020, 5:21 PM
Gaurav Raikwal
Gaurav Raikwal - avatar
8 Answers
+ 1
https://code.sololearn.com/cpSIDH56bgAw/?ref=app here its working
21st Mar 2020, 6:20 PM
meow
meow - avatar
+ 1
EOFError raises when there is input your program but you dont enter input. In your code's input page there is writing "split multiple inputs into seperate lines" so it wants all input in once. Write there like this: FIRST INPUT SECOND INPUT THIRD INPUT for example add 12 23 then your code will work :)
21st Mar 2020, 5:54 PM
meow
meow - avatar
0
But its saying invalid syntax in line 53
21st Mar 2020, 5:56 PM
Gaurav Raikwal
Gaurav Raikwal - avatar
0
add bracket end of the line 50 you forgot a bracket there
21st Mar 2020, 6:05 PM
meow
meow - avatar
0
Its there
21st Mar 2020, 6:06 PM
Gaurav Raikwal
Gaurav Raikwal - avatar
0
Ok please if u could tell better way to add factorial feature in this coding
21st Mar 2020, 6:06 PM
Gaurav Raikwal
Gaurav Raikwal - avatar
0
now write for example add 23 12 and working
21st Mar 2020, 6:07 PM
meow
meow - avatar
0
I want Factorial to work brother rest all works
21st Mar 2020, 6:07 PM
Gaurav Raikwal
Gaurav Raikwal - avatar