/home/caleb/NetBeansProjects/ADSV Java/lab7_CalebFontenot/src/main/java/com/calebfontenot/lab7_calebfontenot/And1.java |
nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
package com.calebfontenot.lab7_calebfontenot;
import java.util.Scanner;
@author
public class And1 {
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?");
}
}