摘要:
void bubbleSort(int arr[], int n) { int i, j; for (i = 0; i < n - 1; i++) { for (j = 0; j < n - i - 1; j++) { if (arr[j] > arr[j + 1]) { // 交换 arr[j] 阅读全文
摘要:
include <stdio.h> int main () { int x; int one,two,five; scanf ("%d",&x); for (one=0;one<x10;one++){ for(two=0;two<x10/2;two++){ for(five=0;five<x10/5 阅读全文
摘要:
include <stdio.h> int main () { int n=1; int x; scanf("%d",&x); int biaozhi=1; for (n=2;n<x;n++){ if(x%n0 ){ biaozhi=0;此处可加break;} } if (biaozhi0)prin 阅读全文
摘要:
include <stdio.h> int main() { srand(time(0)); int number=rand()%100+1; int count=0; int a=0; printf("我已经想好了一个数字:"); do{ printf("试试猜出这个数字;"); scanf("% 阅读全文