0
What do i have to do here?
https://code.sololearn.com/cw5RAUedVX14/?ref=app It does print a text if it's not prime number. If it is one, it just doesnt output.(If i would normally cout, it would print the text in there multiple times.)
2 Answers
+ 5
repeat what you did for not a prime number. remember the break;
0
Try declaring "prime" outside the for loop, set it to "true" and check it after the for loop.