Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( Loops ) Write a for loop that prints the numbers from 0 to 1 0 0 by 3 ' s . ; then by

(Loops)
Write a for loop that prints the numbers from 0 to 100 by 3's.; then by 5s
Rewrite "for" loop below as a "while" loop where the variable number is a positive
integer received as input.
number = int (input ("Enter an integer"))
for i in range (0, number):
if i2=0 :
print (i)
Write a while loop that counts to 0 down from an user inputted number.
Rewrite #2 as a for loop.
Write a for loop that prints all even numbers up to 100
Rewrite #4 as a while loop.
Write a while loop that prints every 3rd number up to an user inputted number.
Write a while loop that prints the numbers from a user-specified starting value to a
user-specified ending value in steps also specified by the user.
(Does your algorithm work if the end value is less than the start value?)
Try to rewrite #7 as a for loop
image text in transcribed

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

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago