Re: [quote=sugarstyx_x]:idea: PLEASE READ:
• You're not allowed to Plagiarize, we do not encourage this.
• Members can help you but not allowed to do the work for you.
• This is a Discussion thread
[quote]import java.util.Scanner;
public class Number
{
public static void main(String[] args)
{
Scanner inputted=new Scanner(System.in);
System.out.println("Enter a number:");
int yourNumber=inputted.nextInt();
if(yourNumber==100) {
System.out.println("0");
}
else if(yourNumber > 100) {
System.out.println("you have exceeded 100.");
}
else {
System.out.println(yourNumber+1);
}
}
}[/quote]