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

📄 copy (2) of comparing.java

📁 Comparision of numbers.
💻 JAVA
字号:
class comparing{
public static void main(String[]args) {
int a=2, b=20,c=33;
if (a == b){
   if(b==c){
     System.out.println("Three numbers are equal");
   }
   else if(b>c){
     System.out.println("a and b are equal and c is smallest");
   }
   else{
     System.out.println("a and b are equal a and c is greatest");
   }
}
else if(a>b){
    if(b>c){
      System.out.println("a is greatest and c is smallest");
     }
     else if(a>c){
       System.out.println("a is greatest and b is smallest");
     }
     else{
       System.out.println("c is greatest and b is smallest");
     }
}    
else{
    if(b<c){
      System.out.println("a is smallest and c is largest");
     }
     else if(a<c){
       System.out.println("a is smallest and b is largest");
 }
    else{
        System.out.println("c is smallest and b is largest");
     }
}
}}

⌨️ 快捷键说明

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