src/Recursion_Course/recursion_print.java
public static void printLexicoCount(int curr, int end) {

		if (curr > end) {
			return;
		}

		System.out.println(curr);

		int i = 0;
		if (curr == 0) {
			i = 1;
		}

		while (i <= 9) {
			printLexicoCount(curr * 10 + i, end);
			i++;
		}

	}
//	print Lexico Counting starting from same digit
print Lexico Counting starting from same digit
print Lexico Counting starting from same digit
public static void printLexicoCount(int curr, int end) {
		if (curr > end) {
			return;
		}
		System.out.println(curr);
		int i = 0;
		if (curr == 0) {
			i = 1;
		}
		while (i <= 9) {
			printLexicoCount(curr * 10 + i, end);
			i++;
		}
	}
public static void printLexicoCount ( int curr , int end ) { if ( curr > end ) { return ; } System . out . println ( curr ) ; int i = 0 ; if ( curr == 0 ) { i = 1 ; } while ( i <= 9 ) { printLexicoCount ( curr * 10 + i , end ) ; i ++ ; } }
print Lexico Counting starting from same digit
print Lexico Counting starting from same digit