2 Comments

  1. Ajit

    
    int n=10;
    int i;
    int j;
    int k;
    for(i=1;i<=n;i++){
    k=i;
    for(j=1;j<=i;j++){
    System.out.printf("%2d",k);
    k=k+(n-j);
    }
    System.out.print("/n");
    }
    }
    }
    

    Reply
  2. pritam

    Please help me out in this
    1
    2 6
    3 7 10
    4 8 11 13
    5 9 12 14 15

    Reply

Leave a Reply.. code can be added in <code> </code> tags