在20 - 40中去十个元素,赋给两个数组a,b,然后将它们的其中的十个元素相加,得到的结果赋给数组c. int a[10] = {0},b[10] = {10},c[10]= {0}; for (int i = 0; i < 10; i++) { a[i] = arc4random()%(40 - 20 +1) + 20; b[i] = arc4random()%(40 - 20 +1) + 20; c[i] = a[i] + b[i]; printf("%d + %d = %d \n",a[i],b[i] ,c[i]); }