top of page


Цикл for
 

a=input() b=int(input()) for i in range (b): print (a)

Слайд9

n=int(input()) for i in range (1,11): print(n, "x", i, "=", n*i)

Слайд5

m=float(input()) p=float(input()) n=int(input()) for i in range (n): print (i+1, m * (p / 100 + 1) ** i)

Слайд8

m=int(input()) n=int(input()) for i in range (m, n+1): if i%17==0 or i%10==9 or (i%3==0 and i%5==0): print(i)

Слайд7

m = int(input()) n = int(input()) if m%2==1: for i in range(m, n -1,-2): print(i) else: for i in range(m-1, n -1,-2): print(i)

Слайд6

n = int(input()) m = int(input()) if n < m: for i in range(n, m + 1): print(i) else: for i in range(n, m - 1, -1): print(i)

Слайд4

a=int(input()) for i in range (a): print("*"*a) a-=1

Слайд3

a=int(input()) for i in range (a+1): print("Квадрат числа", i, "равен", i*i)

Слайд2

a=int(input()) for i in range(a): print("*******************")

bottom of page