Social Sciences, asked by bvishhagmailcom, 6 months ago


given 3 inputs n, minimum and maximum find the number of values raised to the nth power that lie in the range of minimum and maximum inclusive constraints

Answers

Answered by ayeshaparveen5555
0

Answer:

count = 0  

n, min, max = map(int,input('Enter number, min, max values: ').split())  

for i in range(max):  

if i**n in range(min,max):  

 print('{}^{} lies between {} and {}'.format(i,n,min,max))  

 count += 1  

print('Total values found =',count)

Explanation:

Hope this helps

Similar questions