class test
{
void maim( )
{
int k=5;
int p=2;
while (p++<k--)
while(--k!=0)
{
System. out. print (k+p--);
System. out. println (k*p);
}
System. out. println (k--*--p);
}
}
Please give the output...
Don't spam......
Answers
Answered by
1
Answer:
6
6
4
2
2
0
0
Explanation:
int k=5;
int p=2;
p++ = 3;
k-- = 4;
while(3<4) == true
3!=0 == true
k+p-- = 3+2; = 5;
3*2 = 6
Attachments:
Similar questions