+ 2
May someone explain me where M I going wrong
The code is supposed to be printing the prime no from 1 to n( which is a limit as input by the user) So here is the code https://code.sololearn.com/cAJ34Ch8Ozs2/?ref=app Have a look n help me
3 Respostas
+ 4
Ayush Pandey
reinitialise k with 0 in first loop.
https://code.sololearn.com/cvqhe63kH40K/?ref=app
+ 2
I Am AJ ! Thanks Bruhh
+ 1
Initialize k = 0 after the second for block
https://code.sololearn.com/crxeLhcYzBcA/?ref=app