摘要:
#include <stdio.h> int main(void) { int i, j; printf("j = "); scanf("%d", &j); for (i = 1; i <= j; i++ ) { if (j % i == 0) printf("%d\n", i); } return 阅读全文
摘要:
#include <stdio.h> int main(void) { int start, end, intervals; puts("please input three integers."); printf("start = "); scanf("%d", &start); printf(" 阅读全文
摘要:
1、 #include <stdio.h> int main(void) { int i, num; puts("please input an integer."); printf("num = "); scanf("%d", &num); for (i = 1; i <= num; i++) { 阅读全文
摘要:
1、 #include <stdio.h> int main(void) { int i, num, sum = 0; puts("please input an integer."); printf("num = "); scanf("%d", &num); for (i = 1; i <= nu 阅读全文
摘要:
1、 #include <stdio.h> int main(void) { int num, counts, temp; int sum =0; puts("please input an num."); printf("num = "); scanf("%d", &num); for (coun 阅读全文
摘要:
1、 #include <stdio.h> int main(void) { int i = 10; while (1) { printf("%d\n", i++); if ( i == 20) break; } return 0; } 2、 #include <stdio.h> int main( 阅读全文
摘要:
1、 #include <stdio.h> int main(void) { int i = 100; while (1) { printf("%d\n", i); } return 0; } 2、 #include <stdio.h> int main(void) { int i = 10; fo 阅读全文
摘要:
1、 #include <stdio.h> int main(void) { int i; puts("please input an integer."); printf("i = "); scanf("%d", &i); for (i < 0; i ++;) printf("%d\n", i); 阅读全文