实验2-1-5 将x的平方赋值给y

时间:2018-09-18 16:54:39   收藏:0   阅读:577
package com.company;

public class Main {

    public static void main(String[] args) {
    // write your code here
        int x=3;
        int y=x*x;
        System.out.println("x*x="+y);
    }
}

 

原文:https://www.cnblogs.com/zhuzehua/p/9669643.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!