Gurus,
I want to know how to write a recursive function that prints
1 12 123 1234 ... ...... For eg: display(4) should print
#include void print_num(int x); int n; void main(){ printf("Enter number of lines: "); scanf("%d",&n); print_num(1); } void print_num(int x){ int i; for(i=1;i<=x;i++){ printf("%d",i); } if(x
This is simple, right?