Practice 3 ki)
Hypotenuse rule
Write a code that checks if the given hypotenuse is
correct or not.
Hypotenuse rule:
(Longest sides)2 = (Side one)2 + (Side two)?
242+ 72 = 252
4 + 32 = 52
52 + 12 = 13
7
5
13
24
4
12
25
3
Input: Input is three values:
side 1, side 2 and hypotenuse itself.
Output: We must check if the given hypotenuse
is correct or not.
print 'YES' if it is correct or 'NOT if not
Input Output
Input Output
5
3
1 13 NO
2 4 YES
11
5
Terminology
salary - жалақы - зарплата
отличаться
destina
Saran
to arra


Practice 3 ki)Hypotenuse ruleWrite a code that checks if the given hypotenuse iscorrect or not.Hypot

Apple6pen Apple6pen    3   20.05.2021 08:21    1

Другие вопросы по теме Информатика