while True: neb = input("выберите задачу 1 или 2 примwhile True: neb = input("выберите задачу 1,2 или прим: ") print('========') if neb == 'прим': n = int(input('Введите кол чисел: ')) s = 0 print('========') for number in range (1,n+1): print(number,end=" ") print("") print('========') for i in range(1, n+1): s=s+i print('s=', s) print('========') if neb == '2': n = int(input('Введите введите кол чисел: ')) s = 1 print('========') for number in range (1,n+1): print(number,end=" ") print("") print('========') for i in range(1, n+1): s=s*i print('s=', s) print('========') if neb == '1': n = int(input('Введите введите кол чисел: ')) s = 0 print('========') for number in range (1,n+1): print(number,end=" ") print("") print('========') for i in range(1, n+1): s=s+i s=s/n print('s=', s) print('========') p = input('продолжать да/нет: ') print('========') if p == 'да': continue else: break: ") print('========') if neb == 'прим': n = int(input('Введите кол чисел: ')) s = 0 print('========') for number in range (1,n+1): print(number,end=" ") print("") print('========') for i in range(1, n+1): s=s+i print('s=', s) print('========') if neb == '2': n = int(input('Введите количество чисел: ')) s = 1 print('========') for number in range (1,n+1): print(number,end=" ") print("") print('========') for i in range(1, n+1): s=s*i print('s=', s) print('========') if neb == '1': n = int(input('Введите введите кол чисел: ')) s = 0 print('========') for number in range (1,n+1): print(number,end=" ") print("") print('========') for i in range(1, n+1): s=s+i s=s/n print('s=', s) print('========') p = input('продолжать да/нет: ') print('========') if p == 'да': continue else: break
neb = input("выберите задачу 1 или 2 примwhile True:
neb = input("выберите задачу 1,2 или прим: ")
print('========')
if neb == 'прим':
n = int(input('Введите кол чисел: '))
s = 0
print('========')
for number in range (1,n+1):
print(number,end=" ")
print("")
print('========')
for i in range(1, n+1):
s=s+i
print('s=', s)
print('========')
if neb == '2':
n = int(input('Введите введите кол чисел: '))
s = 1
print('========')
for number in range (1,n+1):
print(number,end=" ")
print("")
print('========')
for i in range(1, n+1):
s=s*i
print('s=', s)
print('========')
if neb == '1':
n = int(input('Введите введите кол чисел: '))
s = 0
print('========')
for number in range (1,n+1):
print(number,end=" ")
print("")
print('========')
for i in range(1, n+1):
s=s+i
s=s/n
print('s=', s)
print('========')
p = input('продолжать да/нет: ')
print('========')
if p == 'да':
continue
else:
break: ")
print('========')
if neb == 'прим':
n = int(input('Введите кол чисел: '))
s = 0
print('========')
for number in range (1,n+1):
print(number,end=" ")
print("")
print('========')
for i in range(1, n+1):
s=s+i
print('s=', s)
print('========')
if neb == '2':
n = int(input('Введите количество чисел: '))
s = 1
print('========')
for number in range (1,n+1):
print(number,end=" ")
print("")
print('========')
for i in range(1, n+1):
s=s*i
print('s=', s)
print('========')
if neb == '1':
n = int(input('Введите введите кол чисел: '))
s = 0
print('========')
for number in range (1,n+1):
print(number,end=" ")
print("")
print('========')
for i in range(1, n+1):
s=s+i
s=s/n
print('s=', s)
print('========')
p = input('продолжать да/нет: ')
print('========')
if p == 'да':
continue
else:
break