1 2 1 3 2 1 4 3 2 1 5 4 3 2 1
public class NumberPattern4 { public static void main(String[] args) { for (int i=1; i<=5; i++) { for (int j=i; j>=1; j--) { System.out.print(j+" "); } System.out.println(); } } }
Your feedback helps us grow! If there's anything we can fix or improve, please let us know. We’re here to make our tutorials better based on your thoughts and suggestions.
Provide Feedback
Get 80% off on our Industry Level Courses