當前位置:編程學習大全網 - 電腦編程 - 學生編程

學生編程

公共類學生{私有字符串名稱;私弦性;private int score _ java私有int score _ c;private int score _ phpvoid averages core(){ int sum = 0;int average = 0;sum+= score _ Java+score _ c+score _ PHP;平均值=總和/3;System.out.println("總分:"+sum ");System.out.println("平均分:"+平均);} void maxminscore(){ int temp = 0;int max = 0;int min = 0;temp = score _ javaif(temp & lt;score _ c)temp = score _ c;esle min = score _ c;if(temp & lt;score _ PHP)temp = score _ PHP;else if(min & gt;score _ PHP)min = score _ PHP;max = tempSystem.out.println("最高分:"+max ");System.out.println("最低分:"+min);}}
  • 上一篇:迷妳世界2022如何切換賬號
  • 下一篇:.請編寫壹個Java程序,能夠計算雞兔同籠問題,已知籠中***有9個頭和26只腳,要求計算出該籠中有幾只兔子幾
  • copyright 2024編程學習大全網