1.

Print a pattern in odd number as9 7 5 3 1 9 7 5 39 7 59 7 9

Answer»

Answer:

CLASS pattern

{

PUBLIC static void main(String args[])

{

int k=9;

for(int i=5;i>=1;i--)

{

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

{

System.out.print(k);

k=k-2;

}

System.out.println();

}

}

}

Explanation:

HOPE IT WILL GOING TO HELP YOU ,IF YES PLEASE MARK AS A BRAINLIST



Discussion

No Comment Found