#include <iostream> using namespace std; void f(int a,int b){ if(b<=9){ if(a<=b){ cout<<a<<"x"<<b<<"="<<a*b<<" "; f(a+1,b); }else{ cout<<endl; f(1,b+1); } } } int main(int argc, char** argv){ f(1,1); return 0; }