Introduction to programming concepts python write a while


Introduction to Programming Concepts Python Assignment

Write a while loop that prints

a. All squares less than n. For example, if n is 100, print 0 1 4 9 16 25 36 49 64 81.

b. All positive numbers that is divisible by 10 and less than n. For example, if n is 100, print 10 20 30 40 50 60 70 80 90

c. All powers of two less than n. For example, if n is 100, print 12 4 8 16 32 64.

Solution Preview :

Prepared by a verified Expert
Python Programming: Introduction to programming concepts python write a while
Reference No:- TGS02532516

Now Priced at $15 (50% Discount)

Recommended (94%)

Rated (4.6/5)