Answer:
for (var i = 0; i <20; i++)
{
var lineY = 20 + (i * 20);
line(0, lineY, 400, lineY);
}
Explanation:
To turn the loop while to for loop, you start by considering the iterating variable i and its iterating operations which are;
var i = 0; while (i < 20) and i++;
Where var i = 0; is the initializing statement
(i < 20) is the conditional statement
i++ is the increment
The next is to combine these operations to a for loop; using the following syntax: for(initializing; condition; increment){}
This gives: for(var i = 0; i<20; i++)
Hence, the full code snippet is:
<em>for (var i = 0; i <20; i++)</em>
<em>{</em>
<em>var lineY = 20 + (i * 20);
</em>
<em>line(0, lineY, 400, lineY);</em>
<em>}</em>
Answer:
Charles Babbage invented computer.
hope this helps!
A hand draw sketch is drawing with just a pencil and paper. also work drawing is a drawing on at a job. The 3D sketch is on the computer.
TCP/IP is the dominant network protocol today and is in use in virtually every lan and wan in the world.
<h3>What is the dominant network protocol?</h3>
The Internet protocol suite is known to be called TCP/IP as it is the most used or dominant protocol of the Internet and it has an increasing deployment on public Internet for a long time.
Therefore, TCP/IP is the dominant network protocol today and is in use in virtually every lan and wan in the world.
Learn more about network protocol From
brainly.com/question/24191948
#SPJ12