Write a while loop that prints a. All squares less than n. For example, if n is

Question:

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 are 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 1 2 4 8 16 32 64.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: