subject

I need to know how I can combine these 4 for loops into one in program Processing - programming language - Java: int x = 0;
background(0);
size (900,500);

rect(400,0,100,100);

for(x = 0; x < 9; x = x + 1)
rect(100*x, 400, 100, 100);

for(x = 1; x < 8; x = x + 1)
rect(100*x, 300, 100, 100);

for(x = 2; x < 7; x = x + 1)
rect(100*x, 200, 100, 100);

for(x = 3; x < 6; x = x + 1)
rect(100*x, 100, 100, 100);

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:40
Write an assembly program with the following specifications.a). in the main block, you should have two registers r4 and r5. they should be checked in an infinite loop. if r4 is greater than r5, then the greater subroutine will be called. if r4 is less than r5, then the less subroutine will be called. if r4 equals r5, then no operations will be done
Answers: 1
question
Computers and Technology, 22.06.2019 16:20
Octothorpe is another name for what common computer keyboard symbol?
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
question
Computers and Technology, 23.06.2019 11:30
Which excel file extension stores automated steps for repetitive tasks?
Answers: 1
You know the right answer?
I need to know how I can combine these 4 for loops into one in program Processing - programming lang...
Questions
question
Mathematics, 15.03.2020 00:54
question
Mathematics, 15.03.2020 00:55
question
Mathematics, 15.03.2020 00:55
question
Mathematics, 15.03.2020 00:56
question
Social Studies, 15.03.2020 00:57