結果 : how to print pattern in java using for loop