+ 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

8th Oct 2018, 11:30 AM
Dhiviya Thirumavalavan
Dhiviya Thirumavalavan - avatar
1 Answer
+ 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
8th Oct 2018, 12:00 PM
Ronen Gil רונן גיל رونين جيل 🏳️‍🌈♾🇹🇩🇮🇱
Ronen Gil רונן גיל رونين جيل 🏳️‍🌈♾🇹🇩🇮🇱 - avatar