Computer Science, asked by aviralsharda2009, 12 hours ago

Wap to print any pattern using \n and \t.​

Answers

Answered by samarthkrv
0

Answer:

import java.util.Scanner;

class Main

{

public static void main(String args[])

{

for(int i = 9;  i >= 0; i--)

 {

  for (int k = i; k >= 0; k--)

   {

     

     

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

   }

   System.out.println("\n");

 }

}

}

Explanation:

output -

Attachments:
Similar questions