subject

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.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 08:00, nataliamontirl4230
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
Answers: 1
image
Computers and Technology, 24.06.2019 22:10, mikaylaaaaa
How many different ways are there to order the eight jobs in the queue so that job usu comes somewhere before cdp in the queue (although not necessarily immediately before) and cdp comes somewhere before bbd (again, not necessarily immediately before)?
Answers: 1
image
Computers and Technology, 24.06.2019 23:00, amandajennings01
Why is it preferable to code web pages in html format? a. to create more lines code b. to apply general formatting rules c. to display properly as search results in all browsers d. to add meaning to the document
Answers: 1
image
Computers and Technology, 24.06.2019 23:30, etzzz32561
Which example can be considered master data in an organization? a. holiday list b. dress code c. employee information d. recreational activities
Answers: 1
You know the right answer?
Write a while loop that prints

a. all squares less than n. for example, if n is 100, pri...

Questions in other subjects: