Computer Science, asked by ranareddy025, 2 months ago

given two numbers input 1 and input 2 find total number of occurrences of input1 in a series of natural numbers from 0 to till input 2​

Answers

Answered by monishaswamyms
0

Answer:

1) input 1 will be within 1 - 9 and

2) input 2 will be within 1 - 100.

Answer:

input : 22

output : 6.

Explanation -1:

total 2s that appear as digit from 0 to 22 are ( 2, 12, 20, 21, 22 ) ;

input : 10 , output : 20

Explanation -2:

total 2s comes between 0 to 100 are ( 2, 12, 20, 21, 22... 29, 32, 42, 52, 62, 72, 82, 92 );

Answered by hemanthsaiyakkati
0

Answer:

Explanation:

quit

Similar questions