def gugu(dan, i):
print dan, i, dan*i;
if (i < 9):
gugu(dan, i+1);
elif (dan < 9):
gugu(dan+1, 1);
#include <stdio.h>
int main()
{
int i,j;
recur(1,1);
return 0;
}
void recur(int i,int j)
{
if(i==10){
return;
}
recur2(i,j);
printf("\n");
recur(i+1,j);
}
void recur2(int i,int j)
{
if(j==10){
return;
}
printf("%dx%d = %d ",i,j,i*j);
recur2(i,j+1);
}
#include <stdio.h>
void gu(int base, int inc) {
if(base==10) {
return;
}
if(inc==10) {
printf("\n");
gu(base+1, 1);
return;
}
printf("%d x %d = %d\n", base, inc, base*inc);
gu(base, inc+1);
}
int main(void) {
gu(1, 1);
return 0;
}