65,210
社区成员
发帖
与我相关
我的任务
分享
79 64 25 40 70 98 28 74 55 62
140 159 167 127 111 111 143 199 175 120
264 275 207 200 285 219 254 223 205 208
329 304 354 374 386 374 321 352 368 362
459 429 453 484 419 442 458 463 453 450
522 513 554 525 521 514 501 528 518 535
642 667 623 607 677 695 632 633 688 651
702 708 753 710 714 726 798 703 733 723
858 896 809 826 825 823 801 805 826 882
945 914 904 996 921 980 950 905 923 927
#include <iostream>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
using namespace std;
int main(void)
{
int a[10][10] = {0};
srand(time(NULL));
for(int i = 0; i < 10; i++)
{
for(int j = 0; j < 10; j++)
{
a[i][j] = rand()%100 + i * 100;
cout << a[i][j] << "\t";
}
cout << endl;
}
return 0;
}