~JAVA code help~

PRITY

Member
Jul 29, 2009
46
2
0
is there anyone to help me 2 get this out put??? i need java code.:(

jt5ru9.jpg


zj8ac0.jpg
 

chamaz

Well-known member
  • May 2, 2009
    13,202
    1,272
    113
    oyata code 1 da ona.mata wediya java be at try karala balannam
     
    Last edited:

    anuja

    Member
    Feb 3, 2007
    6,175
    9
    0
    35
    Malabe
    class Qtwo {

    public static void main (String args[]) {

    for(int i=0; i<6; i++) {

    for(int j=0; j<6-i; j++) {
    System.out.print(" ");
    }

    for(int k=0; k<5; k++) {
    System.out.print("& ");
    }

    System.out.println();

    }

    }
    }
     

    anuja

    Member
    Feb 3, 2007
    6,175
    9
    0
    35
    Malabe
    class Qtwo {

    public static void main (String args[]) {

    for(int i=0; i<9; i++) {

    for(int j=0; j<9-i; j++) {
    System.out.print(9-i);
    }

    for(int k=0; k<i*2; k++) {
    System.out.print(" ");
    }

    for(int l=0; l<9-i; l++) {
    System.out.print(9-i);
    }

    System.out.println();

    }

    }
    }