/****** 檔名:JPA01.java 題目:TQC+ JAVA6物件導向程式設計 參考答案 時間:2015/06 作者:fang shi mai ******/ public class JPA01 { public static void main (String argv[]) { int skill = 6, action = 9, excitment = 8, result; result = gameRating(skill, action, excitment); System.out.print("The rating of the game is "); System.out.println(result); } public static int adder (int _s, int _a, int _e) { return _s+_a+_e; } public static int gameRating (int s, int a, int e) { return adder(s,a,e); } }
沒有留言:
張貼留言