返回列表 發帖
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.    int i=1;
  7.    while(i<=9)
  8.    {
  9.       
  10.        int j=1;
  11.        while(j<=9)
  12.        {
  13.          cout<<i<<"*"<<j<<"="<<i*j<<"\t";
  14.          j++;   
  15.        }
  16.        i++;
  17.        cout<<endl;
  18.    }
  19.   
  20.    system("pause");
  21.    return 0;
  22. }
複製代碼

TOP

返回列表