PYTHON
a = int(input())
b = int(input())
n = int(input())
def f(x):
return (3 * x ** 3 - 7) / x
for x in range(a, b + 1, (b - a) // n):
print(x, '-', f(x))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
PYTHON
a = int(input())
b = int(input())
n = int(input())
def f(x):
return (3 * x ** 3 - 7) / x
for x in range(a, b + 1, (b - a) // n):
print(x, '-', f(x))