lab 2

x= input (‘Please type the value of X’)
y= input (‘Please type the value of y’)
x= int(x)
y= int(y)

val_sum= x+y
val_min= x-y
val_mul= x*y
val_dev= x/y
val_perc= (x/y)*100
print (val_sum)
print (val_sum)
print (val_mul)
print (val_dev)
print (val_perc)
if X>Y :
print(“x is greater than y”)
else :
print(“y is greater than x”)

 

python 2python 3

Leave a Reply

Your email address will not be published. Required fields are marked *

A City Tech OpenLab ePortfolio