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

Why did the king issue the proclamation of 1763? to enforce tax on sugar to establish British soldiers in the colonies to encourage settlement of lands west of
What is the x-intercept of the line with the equation -2x+1/2y=18
What are discretionary calories
Both Kurdish and Irish unification movements Answers are - have employed violence and terrorism -resulted from ethnic minority suppression -have forced a nati
Difference between scavenger and carnivore?
Plz help with these questions!!
Which of the following was a benefit of the Sumerian writing system? a. It helped people understand nature. b. It helped people keep orderly records. c. It h
Which nutrient would you take to maintain healthy eyesight?
What is one negative effect of the huge oil reserves in Nigeria? (1 point) a.deforestation b.desertification c.air and water pollution d.unemployment
explain why 2.15 and-2.15 opposite