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

TOP

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

TOP

返回列表