标签:
#include <iostream> using namespace std; void draw(int n,int x) { if(x<=n) { cout<<n<<"*"<<x<<"="<<n*x<<" "; draw(n,x+1); } } void draw(int n) { if(n>0) { draw(n-1); draw(n,1); cout<<endl; } } int main(void) { draw(9); return 0; }
标签:
原文地址:http://www.cnblogs.com/tinaluo/p/5248898.html