| /home/chloe/NetBeansProjects/ADSV Java/lab7_ChloeFontenot/src/main/java/com/chloefontenot/lab7_chloefontenot/And1.java |
nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
package com.chloefontenot.lab7_chloefontenot;
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?");
}
}