java 不是NEITHER 2 NOR 5的倍数。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java 不是NEITHER 2 NOR 5的倍数。相关的知识,希望对你有一定的参考价值。

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package BASICJAVA;

import java.util.Scanner;

/**
 *
 * @author ABIR
 */
public class NOT_multiple_2_OR_5 {
   public static void main(String[]args){
        Scanner abir =new Scanner(System.in);
        System.out.println("Enter your first number");
        int number=abir.nextInt();
        if(number%2 !=0 && number%5 !=0){
            System.out.println("Number is Multiple by 2 and 5");
        }
    } 
}

以上是关于java 不是NEITHER 2 NOR 5的倍数。的主要内容,如果未能解决你的问题,请参考以下文章

C语言编译报错:error: subscripted value is neither array nor pointer nor vector

Neither the JAVA_HOME nor the JRE_HOME错误解决

使用Linux shell脚本远程启动tomcat报错Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At

JAVAEclipse出现This element neither has attached source nor attached Javadoc...的解决方法

Tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined

Android异常:唤醒锁未授权。(Caused by: java.lang.SecurityException: Neither user 10044 nor current process has