Wap to print any pattern using \n and \t.
Answers
Answered by
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