(( 70 баллов ))
Що буде надруковано в результаті виконання
фрагмента програми?

а) for i in range(1, 10):
for j in range(1, 10):
print(i, '*', j, '=', i*j)

б) alpha_list = ['a', 'b', 'c']
for letter1 in alpha_list:
for letter2 in alpha_list:
print(letter1, letter2)

в) for i in range(20):
j = 2
print('i =', i)
while(j <= (i/2)):
if i%j == 0: print(j)
j = j+1

7) for i in range(20):
j = 2
prap = 0
while (j <= (i/2)):
if i%j == 0: prap = 1
j = j+1
if prap == 0: print(i)
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.