for example: how many 2 or/and 5 are inside range of 0 to 30.
for or: there are 8 (2,5,12,15,22,25)
for and: there is only one (25).
Could anybody help me?
Do you know how to extract the last digit of a number? Hint: it involves the modulus % operator, which gives the remainder of division.