Computer Science, asked by bhawanjotsinghgill, 9 months ago

please help me for solving this computer program​

Attachments:

Answers

Answered by amannishad0512p5zxh6
2

class Pattern

{

public static void main (int n)

{

int i,j,t=0,c=1;

for( i=1;i<=n;i++)

{

t=c;

for( j=1;j<=i;j++)

{

System.out.print(c+" "+);

t=c+2;

}

System.out.println( );

c+=2;

}

}

Anydoubt pls me again,for more java related doubts follow me,on Instagram YouTube and brainly.(see my profile for more details)

Similar questions