返回列表 發帖
本帖最後由 吳秉翰 於 2018-6-9 13:54 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. void multi (int start,int end)
  5. {
  6.     for(int i=start;i<=end;i++)
  7.     {
  8.         for(int j=start;j<=end;j++)
  9.         {
  10.             cout<<i<<"*"<<j<<"="<<i*j<<endl;
  11.         }
  12.     }
  13. }
  14. int main()
  15. {
  16.     multi(1,9);
  17.     system("pause");
  18.     return 0;
  19. }
複製代碼

TOP

返回列表