CodePudding user response:
I don't know what problem you are, there is no output? Or the results do not meet the requirements? Use your code to run, can be normal output,
# include & lt; Stdio. H>
Int main (void)
{
Int x, n, I, j;
The scanf (" % d % d ", & amp; X, & amp; n);
For (I=1; i<=n; I++)
{
+ + x;
For (j=2; j<=x; J++)
{
If (x % j==0)
break;
}
If (x==j)
Printf (" % d ", x);
}
return 0;
}
CodePudding user response:
Is my results only if the input 6 3, 7, and can't return the correct resultsCodePudding user response:
Conditions for termination iteration is taboo when the for modifying the value of the. Can cause death cycleCodePudding user response:
4 4 words should also output four primes, not twoCodePudding user response:
I don't know where is wrong, the number three, behind the output x three prime Numbers is to find out