Respuesta :
Answer:
// Code in Python
#variable declaration and initialization
a, b, c = 3, 4, 5
#if a is less than b
if a < b:
#print statement
print('OK')
else:
#print statement
print("NOT OK")
#if c is less than b
if c < b:
#print statement
print('OK')
else:
#print statement
print("NOT OK")
#if a+b equal to c
if a + b == c:
#print statement
print('OK')
else:
#print statement
print("NOT OK")
#if sum of square of a &b equals to square of c
if a * a + b * b == c * c:
#print statement
print('OK')
else:
#print statement
print("NOT OK")
Explanation:
Declare and initialize a=3,b=4 and c=5.If a<b then print "OK" else print "NOT OK". If c<b then print "OK" else print "NOT OK".Next if a+b=c then print "OK" else print "NOT OK".In last if sum of square of a & b is equal to square to c then print "OK" else print "NOT OK".
Output:
OK
NOT OK
NOT OK
OK