Computer Science, asked by poojasanjvee, 5 hours ago

package karan;

public class Loop_2 {

public static void main(String[] args) {
int i = -50;
double y = 20.14;
do {
System.out.println(i);
System.out.println(y);
i=i+10;
y=i+10;
}
while(i<=50);

}




can someone explain this in simple word and detailed

}​

Answers

Answered by mohitkateriya31
0

Answer:

public static void main (string [] args) { it is common statement in every program now suppose we talk I is 50 and double y is 20.14 then on other line we write do and second braket open { then we write system. out. print ln for I

and Same for y then if I is equal to I+10 and same y is also equal to i+10 then close first } and in first we take i is equal to 50 so here it is I is greater than equal to 50 then close second and third }}

Similar questions