文章目录 for循环 for循环 #include <stdio.h> int main() { int num; for(printf("Keep entering numbers!\n");num!=10;) scanf("%d", &num); printf("That's the number I want!\n"); return 0; } Keep entering numbers! 1 2 6 9 4 10 That's the number I want!