Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- int table(int);
- extern i=0;
- void main()
- {
- clrscr();
- int num;
- printf("Enter any no::");
- scanf("%d",&num);
- table(num);
- getch();
- }
- int table(int num)
- {
- if(i==10)
- return num*10;
- else
- {
- ++i;
- printf("%d ",num*i);
- return table(i*table(num));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment