c++程序—乘法表
#include<iostream> using namespace std; #include<string> #include<ctime> int main() { //乘法口诀表 for (int j=1; j < 10; j++) { for (int i = 1; i <= j; i++) { cout << i << " * " << j << " = " << i * j << "\t"; } cout << endl; } system("pause"); return 0; }