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

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

 

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