Computer Science, asked by The1sanegirl, 4 months ago

Find the output of the following snippet and how many times will the outer
loop run?
int j, p=-1, k;
for(j=2;j<=1;j++)
{
for(k=j;k<=0;k++)
{
k= Math.max(j*k,p);
System.out.print(k);
p=p+2;
}

Answers

Answered by tanushpradhan82
0

Answer:

{

for(k=j;k<=0;k++)

{

k= Math.max(j*k,p);

System.out.print(k);

p=p+2;

}

Similar questions