⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sun.java

📁 JAVA学习源代码,大家可以好好参考,请多提宝贵意见
💻 JAVA
字号:
public class Sun
{
public static void main(String args[])
{
	int x,y;
	x=4;y=0;
	if(Math.pow(x,2)==16)
	y=x;
	if(Math.pow(x,2)<15)
	y=1/x;
	if(Math.pow(x,2)>15)
	y=(int)Math.pow(x,2)+1;
	/*x=(int)Math.sqrt(4)/2;//+(int)Math.random()*2/2;
	y=(int)Math.sqrt(112)/3;//+(int)Math.random()*3/3;
	if(x>y)
	System.out.println("x>y"+"x="+x+"y="+y);
	else if(x==y)
	System.out.println("x==y "+"x="+x+"y="+y);
	else
	System.out.println("x<y    "+"n/x="+x+"    n/y="+y);*/
	//for(int i=0;i<2;i++)
	//int i=1;
	//while(i<1)
	System.out.println("y="+y);
	//while(i>1);
/*int a=2,b=1,c=2;
if(a<b)
//if(b<0)
//if(c<0)
c=0;
else
c++;
System.out.println(c);*/
}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -