a=int(input("Enter the value:"))
b=int(input("Enter the value:"))
c=int(input("Enter the value:"))
d=0
for i in range(0,c):
  d+=a+i*b
print(d)

98340eafa4b78f8a6acd4b1c3541a3ef8931d97e
<mask token>

<mask token>
for i in range(0, c):
    d += a + i * b
print(d)

a = int(input('Enter the value:'))
b = int(input('Enter the value:'))
c = int(input('Enter the value:'))
d = 0
for i in range(0, c):
    d += a + i * b
print(d)

a=int(input("Enter the value:"))
b=int(input("Enter the value:"))
c=int(input("Enter the value:"))
d=0
for i in range(0,c):
  d+=a+i*b
print(d)
