Computer Science, asked by dhwaj8412, 7 months ago

have to implement following pattern using all the looping statement.

1)  54321
      5432
      543
      54
      5

2) 5
44
333
2222
11111

3) 1
22
333
4444
55555

In C language
the first and correct answer I will mark BRAINLIEST answer

but urgent needing it ​

Answers

Answered by Anonymous
0

Answer:

Pattern 2

To Print this pattern use the following code:

public class numPtr {

public static void main( String arg[]){

for(int i=1;i<=5;i++){

for(int j=5;j>=i;j--){

System.out.print(j);

}

System.out.println();

}

}

}

Similar questions