結果 : write a menu driven program in java to print the following pattern