結果 : write a java program to print the following patterns using loops