🎉 Festival Deal: Save Big on Professional Courses with Real Projects – Apply Coupons FEST300OFF FEST500OFF
→ Click Here ←

Number Pattern Programs in Java  


Program:
5 4 3 2 1
5 4 3 2
5 4 3
5 4
5
  • Program:
    public class NumberPattern6
    {
        public static void main(String[] args)
        {
            for(int i=1; i<=5; i++)
            {
                for(int j=5; j>=i; j--)
                {
                    System.out.print(j+" ");
                }
                System.out.println();
            }
        }
    }