满意答案
dengjk87
2016.07.26
采纳率:47% 等级:12
已帮助:11948人
123456789101112131415#includeusing namespace std;int main(){ int c=0, i=0, j=0, n=0, sun = 0; int s[100] = {}; for (i=2; i<100;i++) { for(j=0; s[j]; j++) if (i%s[j] == 0) goto next; s[j]=i; n++; sun+=i; next: ...展开123456789101112131415161718192021#includeusing namespace std;int main(){ int c=0, i=0, j=0, n=0, sun = 0; int s[100] = {}; for (i=2; i<100;i++) { for(j=0; s[j]; j++) if (i%s[j] == 0) goto next; s[j]=i; n++; sun+=i; next: ; } cout <
00分享举报