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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:40
Assume that there is a 4% rate of disk drive failure in a year. a. if all your computer data is stored on a hard disk drive with a copy stored on a second hard disk drive, what is the probability that during a year, you can avoid catastrophe with at least one working drive? b. if copies of all your computer data are stored on three independent hard disk drives, what is the probability that during a year, you can avoid catastrophe with at least one working drive?
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Which task uses a simple parameter?
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
What would be the address of the cell, which is at the intersection of the second row and the third column in a worksheet?
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
Write an expression that will cause the following code to print "equal" if the value of sensorreading is "close enough" to targetvalue. otherwise, print "not equal". ex: if targetvalue is 0.3333 and sensorreading is (1.0/3.0), output is:
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
question
Chemistry, 07.02.2021 21:10
question
Mathematics, 07.02.2021 21:10
question
Mathematics, 07.02.2021 21:20
question
Social Studies, 07.02.2021 21:20
Questions on the website: 13722363