#include <iostream> using namespace std; void show(int a,int b){ if(b<=9){ if(a<=b){ cout<<a<<"x"<<b<<"="<<a*b<<" "; show(a+1,b); } cout<<endl; } show(1,b+1); } int main() { show(1,1); return 0; }
标签:std,九九乘法,递归,show,int,void From: https://www.cnblogs.com/wangyueshuo/p/17674575.html