题解 | #打印乘法表#
打印乘法表
https://www.nowcoder.com/practice/4c1ec287030d4ca1be63b258f88ebcc1
#include <iostream> using namespace std; int main() { int n; cin >> n; int a,b; for(a=1;a<=n;a++) { for(b=1;b<=a;b++){ cout<<b<<" "<<"*"<<" "<<a<<" "<<"="<<" "<<b*a<<" "; if(b==a) cout<<endl; } } // write your code here...... return 0; }#大一就出来卷#