+ 1
c program for primenumbers
https://code.sololearn.com/cFG1TKz0FfDh/#c Can anyone correct me what mistake i have done?? If I am giving number as 10. The 10 primenumbers is not printing.. Just correct me if anyone found out the mistake
1 Respuesta
+ 3
It will take some time to find the exact problem and fix fir this code, but in a glance: this is not a proper use of an arry (n), you have miltiple assinments for variables (like i=1) and there is some confusion with the loops...
for the time being, you can take a look at: https://code.sololearn.com/cJuiSZOOzeSx/?ref=app