write programs using nested loop to display the following patterns:-
12345
1234
123
12
1
Answers
Answered by
7
hey friend,
here's your answer,
hope it helps you....!
here's your answer,
hope it helps you....!
Attachments:
Anonymous:
was going to answer bt couldn't
Answered by
0
Answer:
import java.util.*;
public class theans{
public static void main(){
int i,j;
for(i=5;i>=1;i--){
for(j=1;j<=i;j++){
System.out.print(j);
}
System.out.println();
}
}
}
Enjoy :)
Similar questions