You are on page 1of 1

Достатній рівень

1. from math import ceil


print ('Введіть число a')
a = int (input ())
print ('Введіть число b')
b = int (input ())
print ('Введіть число c')
c = int (input ())
print ('Введіть число d')
d = int (input ())

Сума = (a+b+c+d)

print ('Сума чисел =' , Сума)

Середній рівень

4. from math import *


a = int (input('Катет a-'))
b = int (input('Катет b-'))
c = sqrt(a*a+b*b)
p = a+b+c
print ("Периметр прямокутного трикутника =" , p)

5. a = int(input())
print(a % 10)

Високий рівень

6. from math import *


print ('Введіть число x')
x=int(input())
if x%2==0:
print('Yes')
else:
print('No')

7. from math import *


print ('Введіть число a')
a=int(input())
if a%2==0:
print(a/2)
else:
print('0')

You might also like