/home/caleb/NetBeansProjects/ADSV Java/LabClass_Sep6_CalebFontenot/src/main/java/com/calebfontenot/labclass_sep6_calebfontenot/SimpleIfDemo.java |
nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
package com.calebfontenot.labclass_sep6_calebfontenot;
import java.util.Scanner;
@author
public class SimpleIfDemo {
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
System.out.print("Enter an integer: ");
int number = input.nextInt();
if (number % 5 == 0) {
System.out.println("HiFive");
}
if (number % 2 == 0) {
System.out.println("HiEven");
}
}
}