Computer Science, asked by harshpradhan74, 11 months ago

write a program to display the given pattern :
1 1 1 1 1
3 3 3 3
5 5 5
7 7
9​

Answers

Answered by ayushirock200055
1

Answer:

import java.util.*;

class pattern

{

public static void main ()

{

int n = sc.nextint();

for(int a=1;a<=n;a++)

Similar questions