Question 5

Given two numbers m and n. Find all numbers between these two numbers such that difference between adjacent digit is 1

For ex m =0 n =22

O/p – 0,1,2,3,4,5,6,7,8,9,10,12,21

[advanced_iframe securitykey=”undefined” src=”https://code.kodnest.com/” width=”100%” height=”600″]

KodNest Training New Batch is starting on 19th October 2020. Attend one week free demo classes.Register Now

New Report

Close