Computer Science, asked by rajdeepkundu1737, 10 months ago



WAP to accept two no us from the user and punt the largest
& WAP to accept two was
wrs from
from the user and print the smallest
IWAP to accept
from user and display their sum and
accept ano and check is the no is less than 0 or
greater them o
tas WAP to accept 2 no.
and print the division.

Answers

Answered by Equestriadash
7

1st program:

x = int(input("Enter a value:"))

y = int(input("Enter a second value:"))

if x>y:

   print(x, "is the greater value.")

else:

   print(y, "is the greater value.")

   

2nd program:

x = int(input("Enter a value:"))

y = int(input("Enter a second value:"))

if x<y:

   print(x, "is the lower value.")

else:

   print(y, "is the lower value.")

   

3rd program:

a = float(input("Enter the first number:"))

b = float(input("Enter the second number:"))

s = a + b + c + d

print("The sum of the numbers is", s)

if s>0:

   print("The resultant value is greater than 0.")

else:

   print("The resultant value isn't greater than 0.")

4th program:

a = float(input("Enter the first number:"))

b = float(input("Enter the second number:"))

d = a/b

print("The quotient of their division is", d)

Similar questions