How many times the following loop will execute ?
int x=2,y=50;
do
{
++X;
Y-=x++;
System.out.println(y): }while(x<= 10);
Answers
Answered by
1
Explanation:
Following loops will execute 3 times. Loop 1 is Entry control loop and Loop 2 is Exit control loop.
Similar questions
Math,
16 days ago
India Languages,
16 days ago
English,
16 days ago
Environmental Sciences,
1 month ago
Math,
9 months ago
English,
9 months ago