d) Give the output of the following snippet:
int y,p;
for(int x = 1;x<=3;x++)
{
for(y=1;y<=2;y++)
{
P=x * y;
System.out.print(p);
}
System.out.println();
}
Answers
Answered by
4
Answer:
The output will be:
12
24
36
Similar questions