Computer Science, asked by moonlitfeathers, 9 months ago

class predict output
{
static boolean fun(int n)
{
int I;
booloean f= false;
for (I=1;I<=n/2;I++)
f=(I*(I+1)==n);
return f;
}
public static void main ()
{
String a= fun(20)?"GO":"CORONA";
System.out.println(a);
}
}
please help me to predict the output with the dry run please it's very urgent​

Answers

Answered by Anonymous
1

Answer:

// filename Main.java

class Test {

protected int x, y;

}

class Main {

public static void main(String args[]) {

Test t = new Test();

System.out.println(t.x + " " + t.y);

}

}

Similar questions