Computer Science, asked by diyajadvani123, 1 day ago

Write a program to input three numbers from the user, then print 'You Won' if the sum of input numbers is greater than 1000 class 7
language python
please send me fast​

Answers

Answered by samarthkrv
3

Answer:

print("Enter 3 numbers")

tot = 0

for i in range(3):

   x = int(input())

   tot = tot + x

if(tot >= 1000):

   print("You won")

else:

   print("You lost")

Explanation:

Answered by Anonymous
3

First we'll ask three numbers from the user separately, then we'll check whether the sum of the input three numbers is greater than 1000 or not, if it is greater than 1000, we'll print "You Won", else we'll print "You Lose" .

The PYTHON program has been attached above with the output. Kindly check it!

Attachments:
Similar questions