Scanner scanner=new Scanner(System.in)import java.util.Scanner;
public class inputoutar
{
   public static void main(String[] args)
   throws NumberFormatException
 {
   Scanner scanner=new Scanner(System.in);
   int inputInteger;
   int inputInteger1;
  
   System.out.println("请输入一个整数: ");
   inputInteger=scanner.nextInt();
  
   System.out.println("请输入一个整数: ");
   inputInteger1=scanner.nextInt();
  
   double s;
   s=(inputInteger+inputInteger1)/2;
   System.out.println(inputInteger+"\t"+inputInteger1+"\t"+s);
 }
}
  

相关文章:

  • 2021-11-02
  • 2021-09-27
  • 2021-09-21
猜你喜欢
  • 2022-12-23
  • 2021-08-19
  • 2021-10-19
  • 2021-11-29
  • 2022-12-23
  • 2022-01-09
相关资源
相似解决方案