第1个回答 2012-04-04
main() {int i,j,num=0; for(i=100;i<=900;i++) {if i%10==0 \\*如果i%10=0说明个位是0*\\ continue; \\*结束本次循环,进行下一次循环,gFhCsm
第2个回答 2012-04-04
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main(void)
{
srand( unsigned(time(nullptr)) );
const int MAX = 36000;
int x = 0;
int y = 0;
int test[MAX];
for (int i = 0; i < MAX; ++i)
{
x = rand() % 6 + 1;
y = rand() % 6 + 1;
test[i] = x + y;
cout << "第 " << i+1 << " 次\t" << x << " + " << y << " = " << test[i] << endl;
}
return 0;
}本回答被提问者采纳