Edhesive - Unit 4 Test 4 Questions & Answers | Questions with 100% Correct Answers | Updated & Verified
What is output? Select all that apply. c = 6 while (c 0): print (c) c = c - 2 - 2, 4, 6 Which loop prints the numbers 1, 2...100? - c = 1 while (c = 100): print (c) c = c + 1 Ask the user to input a number less than 100. Print all the numbers from that number to 100. Which loop correctly does this? - num = int (input("Enter a number between 1 and 100: ")) c = num while (c = 100): print (c) c = c + 1 Write a program that asks the user for their name and how many times to print it. If I enter Ada and 3 it should print: Ada Ada Ada
Document information
- Uploaded on
- November 11, 2022
- Number of pages
- 5
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers