📄 compif.java
字号:
import java.io.*;
public class CompIf
{
public static void main(String args[]) throws IOException
{
int a,b,c,t;
String str;
BufferedReader buf;
buf=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Input first number:");
str=buf.readLine();
a=Integer.parseInt(str);
System.out.print("Input second number:");
str=buf.readLine();
b=Integer.parseInt(str);
System.out.print("Input third number:");
str=buf.readLine();
c=Integer.parseInt(str);
if (a>b)
{t=a;a=b;b=t;}
if (a>c)
{t=a;a=c;c=t;}
if (b>c)
{t=b;b=c;c=t;}
System.out.print(a+","); System.out.print(b+",");
System.out.print(c);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -