int main() { int n = 100; for (int i = 2; i < n; i = i+1) { bool not_prime = false; for (int j = 2; j < i && !not_prime; j = j+1) if (i%j == 0) not_prime = true; if (!not_prime) { printf("%d is a prime\n", i); } } return 0; } 這條程是什麼意思...??為甚麼可以噴出質數?? bool not_prime = false;是蝦米.....
Q2 #include <cstdio> //52 int main () { int n,i,t[1000],big[1]={0},i2=1;
This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.
You are receiving this email because you subscribed to this feed at blogtrottr.com.
留言列表