Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assuming a user enters 3 0 , 2 0 , and 1 0 as the input values, what is the output of the following code

Assuming a user enters 30,20, and 10 as the input values, what is the output of the following code snippet?
num1= int(input("Enter a number: "))
num2= int(input("Enter a number: "))
num3= int(input("Enter a number: "))
if num1> num2 :
if num1> num3 :
print(num1)
else :
print(num3)
else :
if num2> num3 :
print(num2)
else :
print(num3)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

1. Explain the 2nd world war. 2. Who is the father of history?

Answered: 1 week ago