#include int arr[20], aindex = 1; // using arr[] as a stack int max = 10; void disp(int d, int start) { int i, j; if(d == 1) for(i=start; i