Loop statement with condition - while




ЗАДАЧА
Given a fragment of the program, determine how many times the body of the while loop will execute in it and what is the value of the variable a after the execution of this loop.
The answer must be given in the form <number>; <number>
For example, if the cycle is executed 5 times, and the value of the variable is equal to 10, then the answer must indicate line 5; 10

If the loop is looping, only one word must be specified INF

Fragment of the program
a = 8; b = 12;
while ( a > b ) a++;

Ответ:

     
Результаты проверки: