News
Diamond star pattern printing For diamond star pattern printing in java programming, we need to use six loops. The first For loop is outer loop which contain two For loop. first inner For loop is to ...
This loop creates the total number of asterisks needed for the next line by i*2-1 System.out.print("*"); //printing asterisks System.out.println(); //Going to next line to continue diamond pattern.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results