SóProvas


ID
4832086
Banca
INSTITUTO AOCP
Órgão
MJSP
Ano
2020
Provas
Disciplina
Algoritmos e Estrutura de Dados
Assuntos

A MJSP system analyst needs coding a ‘for’ statement that varies the control variable from 7 to 77 in increments of 7. Choose the right sentence concerned that ‘for’ statement.

Alternativas
Comentários
  • b-

    the for loop makes use of three elements: first it's necesary to assign an initial value to the var within the for loop. next up is its value at which the for loop should be halted. lastly one needs to specificy the incremented value assigned to the var so the latter will eventually reach the max value assigned in order to close the loop and set the number of iterations

  • Rapaz, entendo pouquíssimo de inglês e menos ainda de programação, mas acredito que a questão pediu uma range que começasse no 7(start), parasse no 77 (stop) e que fosse de 7 em 7 (step).

  • Força Guerreiro!!!!!!