/home/caleb/NetBeansProjects/ADSV Java/lab7_CalebFontenot/src/main/java/com/calebfontenot/lab7_calebfontenot/Not1.java |
package com.calebfontenot.lab7_calebfontenot;
import java.util.Scanner;
@author
public class Not1 {
public static void main(String[] args)
{
System.out.print("Please enter a number between 0 and 10: ");
int number = new Scanner(System.in).nextInt();
if ( ! (number < 0 || number > 10) )
{
System.out.println("\nThank you for entering number " + number + "!");
}
else {
System.out.println("\n" + number + " is not between 0 and 10! What's wrong with you man?");
}
}
}