Computer Science, asked by mukulnike22, 2 months ago

Given two integer numbers input1 and input2, find the total number of occurrences of input1 in a series of natural numbers from 0 till input2.

Note:

1. input1 will be within 1-9 and

1. input2 will be within 1 - 100.

Prototype: public int find TotalOccurrence(int input1, int input2)

Example 1:

input1 = 2

input2 = 20

output = 3

Explanation: Number 2 is repeated 3 times in the series of natural numbers

from 0-20 i.e. at 2, 12, 20​

Answers

Answered by zainishmaqsood
4

Answer:

its will be repeat less than integer

Explanation:

ok

Similar questions