+ 2
if random number is 4 or 5 my code doesn't give output .why?
7 Answers
+ 1
I added missing outputs
https://code.sololearn.com/cAlF7D4hs7ku
+ 2
Your code doesn't output in the case of a tie so r of 2 and s of 'stone' won't output anything. Therefore, 'paper' and 4 won't output either.
+ 2
John Wells is right!
+ 1
John Wells where is the condition of tie is occurring?
+ 1
John Wells where is the condition of tie is occurring?
+ 1
John Wells thanks ...i totally forgot about that condition!!âșâș
0
Use (if)...(else if)...(else if)...(else) instead of (if)...(if)...(if)...(else).