Quote:
You can't count any number second time. Every number will be unique.
How many times do you count 8 or 36 ?
8 = 1 * 8 = 2 * 4
36 = 4 * 9 = 6 * 6
[Update]
Quote:
Sir, so how I will write the loop to get the solution ?
could you write the part of code here?
You need to remember if a number is first time seen or already seen, counting how many times a number is seen) .