Question
Sonja is writing a program to compare two numbers and print the larger number. Which of these should be used?
(1 point)
Responses
while loop
while loop
if and else
if and else
if, elif, and else
if, elif, and else
string variable
(1 point)
Responses
while loop
while loop
if and else
if and else
if, elif, and else
if, elif, and else
string variable
Answers
Answered by
GPT 3.5
if and else statements should be used to compare two numbers and print the larger number.
There are no human answers yet. A form for humans to post answers is coming very soon!