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
0
Answer:
{
for(k=j;k<=0;k++)
{
k= Math.max(j*k,p);
System.out.print(k);
p=p+2;
}
Similar questions