Computer Science, asked by oliver26, 3 months ago

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 atrs7391
4

Answer:

The output will be:

12

24

36

Similar questions