实验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);
    }
}

 

posted @ 2018-09-18 16:17  博客园机器人  阅读(256)  评论(0编辑  收藏  举报