logo

Crowdly

The continue statement must be associated with a loop. When encountered, progra...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

The continue statement must be associated

with a loop. When encountered, program control jumps to the end of the loop

iteration, disregarding the rest of the loop body. For instance, let’s suppose

you want to

exclude

printing all multiples of 19 between two given

numbers n1 and n2. Shown below is an excerpt. Please write the entire C

program.

for (i=n1; i<=n2; ++i) { 

   if (i % 19 == 0)

continue;  /* the remainder of the loop body is skipped */

printf("%d\n", i);

}

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на dle.plaksha.edu.in?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!