Computer Science, asked by hollagauthamdev, 11 months ago

Print The Pattern In Java
1 3 5
3 5 7
5 7 9
7 9 11

Answers

Answered by parirupesushila
1

I hope u r not a beginner.....

<starting commands>

system.out.println(1 3 5)

<repeat>

<closing commands>

Answered by kshbhawan
0

Answer:

public class patern

{

public static void main (String args[])

{

int n=4,i,j,p=1;

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

{

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

{

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

p+=2;

}

System.out.println();

}

}

}

Explanation:

check in vs code

Similar questions