結果 : write a program to illustrate friend function