Computer Science, asked by adityagodara03, 9 months ago

Pls write this program for me! I need this!​

Attachments:

Answers

Answered by abhinavuniyal2
1

Answer:

there are three values n, min and max of a range and you want to find that how many numbers are there such that the value of number raised to the nth power lies between (min,max) range.

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 will help

Similar questions