Computers and Technology

Consider the following code segment:

int p = 5;
while(p > 0)
{
for(int j = p; j < p*2; j++)
{
System. out. print(" * ");
}
System. out. println();
p--;
}
What will the final result be when run in the console?

* * * * *
* * * *
* * *
* *
*

* * * * * *
* * * * *
* * * *
* * *
* *

*
* *
* * *
* * * *
* * * * *

* * * * * * * * * * * * * * * *
* * * * * * * * * * * * *
* * * * * * * * * *
* * * * * * *
* * * *

* *
* * *
* * * *
* * * * *

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 22:20, kaiyerecampbell95
Pp 4.1 design and implement a class called sphere that contains instance data that represents the sphere’s diameter. define the sphere constructor to accept and initialize the diameter and include getter and setter methods for the diameter. include methods that calculate and return the volume and surface area of the sphere (see pp 3.5 for the formulas). include a tostring method that returns a one-line description of the sphere. create a driver class called multisphere, whose main method instantiates and updates several sphere objects.
Answers: 1
image
Computers and Technology, 23.06.2019 23:30, cam961
What are "open-loop" and "closed-loop" systems
Answers: 1
image
Computers and Technology, 24.06.2019 12:30, stephanieanaya7
Why does the pc send out a broadcast arp prior
Answers: 1
image
Computers and Technology, 24.06.2019 16:50, Ameilasmickle15
How many types of string types does python support?
Answers: 1
Do you know the correct answer?
Consider the following code segment:

int p = 5;
while(p > 0)
{
for(...

Questions in other subjects:

Konu
Advanced Placement (AP), 31.08.2019 14:50
Konu
English, 31.08.2019 14:50