2回目の搭乗練習

2940 ワード

package Desk;
import java.util.*;
public class fest{
 
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
        System.out.println(" m :");
        int m = input.nextInt();
        if (m == 1) {
            System.out.println("m=1");
        } else if(m == 5) {
            System.out.println("m=5");
        } else if(m == 10) {
            System.out.println("m=10");
        } else {
            System.out.println("m=none");
        }
}
}

  
package Desk;
import java.util.*;
public class fest {
 
public static void main(String[] arges){
package Desk;
import java.util.*;
public class fest{
 
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println(" :");
int n=input.nextInt();
  if(n%5==0&&n%6==0){
  System.out.println(n+" 5 6 ");
  }else if(n%5==0){
  System.out.println(n+" 5 ");
  }else if(n%6==0){
  System.out.println(n+" 6 ");
  }else{
  System.out.println(" 5 6 ");
  }
}
}

  
package Desk;
import java.util.*;
public class fest{

 public static void main(String[] args) {
  Scanner input=new Scanner(System.in);
  System.out.println(" :");
  int mark=input.nextInt();
  if(mark<=100&&mark>=90){
  System.out.println("A");
  }else if(mark<=90&&mark>=80){
  System.out.println("B");
  }else if(mark<=80&&mark>=70){
  System.out.println("C");
  }else if(mark<=70&mark>=60){
  System.out.println("D");
  }else if(mark<=60){
  System.out.println("E");
  }else if(mark<0||mark>100){
  System.out.println(" ");
  }
 }
}

  
package Desk;
import java.util.*;
public class fest {

 public static void main(String[] args) {
  Scanner input = new Scanner(System.in);
    System.out.print("  x:");
    int x=input.nextInt();
    System.out.print("  y:");
    int y=input.nextInt();
    System.out.print("  z:");
    int z=input.nextInt();
    int max=0;
    int mid=0;
    int min=0;
    if(x>y&x>z) {
     System.out.println(max=x);
    }else if(y>x&y>z) {
     System.out.println(max=y);
    
    }else {
     System.out.println(max=z);
     }
    if(xz||xz) {
     System.out.println(mid=x);
    }else if (yz||y>x&y 
  

  
Scanner input=new Scanner(System.in); System.out.println(" :"); int x =input.nextInt(); switch(x){ case 1: System.out.println("x=1"); break; case 5: System.out.println("x=5"); break; case 10: System.out.println("x=10"); break; default: System.out.println("none"); break; } } }