alexgallardoooo69571 alexgallardoooo69571
  • 02-04-2021
  • Computers and Technology
contestada

In this for loop, identify the loop control variable, the initialization statement, loop condition, the update statement, and the statement that updates the value of s

Respuesta :

codiepienagoya codiepienagoya
  • 07-04-2021

Answer:

Follows are the solution to these question:

Explanation:

Please find the complete question in the attached file.

For point a:

The "j" is the loop control variable that controls this loop  

For point b:

The initialized statement for the given loop is "j = 1"

For point c:

The loop condition for the given loop is "j<=10" which indicates that the value of j is less than equal to 10.

For point d:

The loop given statement that updates the value of the s is "s = s+j*(j-1)".

Ver imagen codiepienagoya
Answer Link

Otras preguntas

Batman took a bicycle trip. In all, he traveled 6 hours at a rate of 28 mph. What was his total distance ?
i need help:((( like now pls
solve the simultaneous equations 2x+3y=13 4x-y=-2
My buen estado y a bajo precio
need help on this question
Fill in the blanks in the following sentences with the appropriate Spanish vocabulary words. Note the hints in parentheses. Your answer needs to be written in l
Determine if the lines going through the given points are parallel. perpendicular or neither: Line A:(-1,-5) (-4,-3) and Line B: (3, 1) (5, 4)
What is Mrs. Baroda's impression of Gouvernail after meeting him for the first time?
Which of the following are advantages of automatic updates?
which fractional part of a rectangle below is equal to 5/10