Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLZ ANSWER QUESTIONS question 1 Which three of the following will be printed? c = 7 while (c > 0): print(c) c = c -

PLZ ANSWER QUESTIONS

question 1

Which three of the following will be printed?

c = 7 while (c > 0):  print(c)  c = c - 3

Group of answer choices

0

1

3

4

5

6

7

question 2

Which loop prints the numbers 1, 3, 5, 7, , 99?

Group of answer choices

a. c = 1 while (c <= 99):  c = c + 2  print(c)
b. c = 1 while (c < 99): c = c + 1 print(c)
c. c = 1 while (c <= 99): print(c) c = c + 2
d. c = 1 while (c < 99): print(c) c = c + 1

question 3

Ask the user to input a number less than 100. Print all the numbers from 0 to that number. Which loop correctly does this?

Group of answer choices

a. num = int (input("Enter a number between 1 and 100: ")) c = num while (num <= c): print (c) c = c + 1
b. num = int (input("Enter a number between 1 and 100: ")) c = 0 while (num <= 0): print (c) c = c + 1
c. num = int (input("Enter a number between 1 and 100: ")) c = 0 while (c <= num): print (c) c = c + 1
d. num = int (input("Enter a number between 1 and 100: ")) c = 0 while (num >= 0): print (c) c = c + 1

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

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

More Books

Students also viewed these Databases questions

Question

million households).

Answered: 1 week ago