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....

best pen drive

wap to perform subtraction