belongs to collection: Java Pattern programs
class pattern public static void main(String[] args) { int i ,j; int n = 6; for(i = n; i>0 ; i-- ) { for(j = 0; j<i ; j++) { System.out.print("*"); } System.out.println(""); } }
Output:
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Program:
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer