156k views
4 votes
Answer the question ASAP please

Answer the question ASAP please-example-1

2 Answers

4 votes

Answer:

if something is greater or lesser than something else

Step-by-step explanation:

User Ebakunin
by
5.9k points
4 votes

Answer:

Shows the programming checking if num1 is greater than num2

Step-by-step explanation:

So num1 and num2 are inputs

for you to code this you would need to put

num1=int(input("What is your first number? ))

and the same for num2 except change num1 for num 2 and first for second

When the input is completed, the computer will check if num 1 is greater than num2

it will do this by using a code something like:

if num1>num2:

Print("Your first input was greater than your second")

But in this example if it greater it just ends

But if it was less than you would put

if num1>num2:

Print("Your first input was greater than your second")

elif num1<num2:

Print("Your first input is less than your second")

So basically this code shows the computer checking if one number is greater than the other or not

User Tom Silverman
by
5.3k points