Avatar ·

Calculate the number of numbers in a given range of the cube of which ends by 4 or 9

📁 python, ии

The number of numbers

Two integers of A and B (A& le; b) are presented at the input program. Write a program that calculates the number of numbers in the range from A to B inclusive, the cube of which ends at 4 or 9.

input format

Two whole numbers a and b (a & le; b).

format Data

the program should display a single number in accordance with the condition of the program. Note. AA & ndash number cube; This is its third degree a^3a.

sample input 1:

   1    10  counter =  0    for  i  in   ( int  ( input  ()),  int  ( input  ()):   if  i %  10  ==  4 :  counter = counter +  1    print  (couter)   else :  i %  10  ==  9   cuffer = counter +  1    Print  (Counter)