You are writing a program that takes in a number from a user and then prints out a line of '*'s that size. What is the BEST type of loop to use? Do-While For-Loop While-Loop
Added by Michael J.
Your feedback will help us improve your experience
Vandit Tyagi and 66 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write a program to enter the numbers till the user wants and at the end the program should display the largest and smallest numbers entered. loop should terminate when user enter -999.
Vandit T.
Starting with a variable text containing an empty string, write a loop that prompts the user to type a word. Add the user's input to the end of text and then print the variable. The loop should repeat while the length of text is less than 10 characters.
Akash M.
Design a program with a loop that asks the user to enter a series of positive numbers. The user should enter a negative number to signal the end of the series. After all the positive numbers have been entered, the program should display the sum of all EVEN numbers.
Shelayah R.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD