wap to display pattern in number

class NumberPattern
{
 public static void main(String[] args) 
 {
 for (int i = 1; i <= 5; i++) 
 {
 for (int j = 1; j <= i; j++)
 {
 System.out.print(j+" ");
 }
 System.out.println();
 }
 }
}

Comments

Popular posts from this blog

A story of friendship A tiger and a rat......become a revengable....

How one can earn money by using Facebook?

French Open • Aryna Sabalenka • Ana Konjuh • Tennis • Naomi Osaka • Women's Tennis Association • Ashleigh Barty