帮写一个java小程序

474关注697浏览

从键盘读入2个整数,如果2个数可以整除,打印出TRUE,反之为FALSE...

展开全部
收起
4回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
  • Bellrrrrr

    8人对此回答表示赞同

    System.out.println("Please input a number:");
    Scanner scan = new Scanner(System.in);
    int a = scan.nextInt();
    System.out.println("Please input b number:");
    int b = scan.nextInt();
    if (a != 0 && b != 0
    展开
    8
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • 周晟

    8人对此回答表示赞同

    import java.util.Scanner;

    public class TestDivisible {
    public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    System.out.print("请输入第一个整数 x = ");
    int x = scan.nex
    展开
    8
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • 白皓

    3人对此回答表示赞同

    import javax.swing.JOptionPane;

    public class TestClass {

    int first ;
    int second ;

    public TestClass() {
    String inputValue1 = JOptionPane.showInputDialog("输入第一个整数?");
    展开
    3
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • 蘑菇头小j

    2人对此回答表示赞同

    import java.util.*;

    public class Test {
    public static void main(String ages[]) {
    System.out.println("Please input a number:");
    Scanner scan = new Scanner(System.in);
    int a = scan.nextInt();
    if (a % 2
    展开
    2
    0回复
    发布于 6年前

    评论(0)

    收起评论

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部