ch1_1.java~12~

来自「本系统为六合彩网上投注系统」· JAVA~12~ 代码 · 共 32 行

JAVA~12~
32
字号
import java.io.*;

public class ch1_1
{
  public int div(int i1,int i2)
  {
    int result = 0;
    result = i1*i2;
    return result;
  }

  public static void main(String args[])
  {
    ch1_1 test = new ch1_1();
    int re1 = 0,re2 = 0;
    DataInputStream dat = new DataInputStream(System.in);
    try
    {
      re1 = dat.readInt();
      re2 = dat.readInt();
      int tt = test.div(re1,re2);
      System.out.println("re1="+re1);
      System.out.println("re2="+re2);
      System.out.println(re1 + "乘以" + re2 +"的结果是" + tt);
    }
    catch (IOException ex)
    {
      ex.printStackTrace();
    }
  }
}

⌨️ 快捷键说明

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