• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

Recommended Posts

blog

废话不多说,以下是源码:(圆相关内容计算)

导入Java。util。扫描仪;

公共类静态演示{

静态双圆周率=3.14//圆周率(静态变量)

公共静态空的方法(){

System.out.println(' . ')));//废话不用看,单纯是为了凑整数

}

公共静态void main(String[] args) {

布尔标志=真;//定义旗帜,为以后正在…循环做准备

扫描仪sc=新扫描仪(系统。在);

while(flag) {

System.out.println('是否继续使用圆相关内容计算系统?1/0');

int s=sc。nextint();

if(s==1) {

System.out.println('请输入圆的半径');

双bj=sc。next double();

System.out.println('圆面积:' PI * bj * bj);//面积计算公式

System.out.println('圆周长: ' PI *(bj bj));//周长计算公式

if(s==0) {

System.out.println('谢谢使用!');

即close();

}

}

//TODO自动生成的方法存根

}

}

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now