Print Diamond Number Pattern Program Type 3

2 comments on “Print Diamond Number Pattern Program Type 3”


  • sriramulu

    class Main{
    public static void main(String[] args) {
    int count=3,num=8;
    for(int i=1;i<=4;i++){
    for(int j=1;j<=i;j++){
    System.out.print(count);
    count+=1;
    }

    System.out.println();
    }
    for(int i=1;i=i;j–){
    System.out.print(num);
    num-=1;
    }

    System.out.println();
    }
    }
    }