摘要:
#include <stdio.h> int main(void) { int label; do { int i; do { puts("please input an integer."); printf("i = "); scanf("%d", &i); if (i <= 0) printf( 阅读全文
摘要:
1、 #include <stdio.h> int main(void) { int i, j, len; puts("please input the len."); printf("len = "); scanf("%d", &len); for (i = 1; i <= len; i ++ ) 阅读全文
摘要:
#include <stdio.h> int main(void) { int i, j, m, n; puts("please input two integers."); printf("m = "); scanf("%d", &m); printf("n = "); scanf("%d", & 阅读全文
摘要:
1、 #include <stdio.h> int main(void) { int i; for (i = 1; i <= 9; i ++) { printf("%3d", i); } printf("\n"); return 0; } ↓ #include <stdio.h> int main( 阅读全文
摘要:
#include <stdio.h> int main(void) { int i, j; printf("j = "); scanf("%d", &j); for (i = 1; i <= j; i ++ ) { if (i % 3 == 0) { putchar('*'); putchar('\ 阅读全文
摘要:
#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 阅读全文