結果 : write a java program to print the following pattern using for loop