+ 2
Can someone tell me why my code shown "Error"
This is the prime number program But while i am compile my code it shown error. Can anyone correct them. https://code.sololearn.com/cwj7BDSeDWTz/?ref=app https://code.sololearn.com/cwj7BDSeDWTz/?ref=app
3 ответов
+ 7
I think it's because you didn't use spaces for indentation because it worked well when I removed them
+ 3
On line 15 change your condition
i <= num to i < num
Secondly, add break statement after line 23 (after incrementing p)
+ 3