实验2-1-4 计算平均分
Posted zhuzehua
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了实验2-1-4 计算平均分相关的知识,希望对你有一定的参考价值。
package com.company; public class Main { public static void main(String[] args) { // write your code here int x=87; int y=72; int z=93; int avg=(x+y+z)/3; System.out.println("math = "+x+", eng = "+y+", comp = "+z+", average = "+avg); } }
以上是关于实验2-1-4 计算平均分的主要内容,如果未能解决你的问题,请参考以下文章