- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main()
- {
- cout << "九九乘法表" << endl;
- cout << "==========" << endl;
- int a = 9;
- int b = 9;
- int z[a][b];
- for (int i = 0; i < a; i++)
- for (int j = 0; j < b; j++)
- z[i][j] = (i+1) * (j+1);
-
- for (int i = 0; i < a; i++){
-
- for ( int j = 0; j < b; j++)
- cout << z[i][j] << "\t";
- cout << endl;
- }
- system ("pause");
- return 0;
- }
複製代碼 |