2010-07-16 12:26:25

dweller
» FTalkAgent
FTalk Level: zero
2079
0
1969-12-31

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=nanix84;#3650777;1278812575]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] Wow! Thanks Sir Nanix! :D

Board footer

© 2024 F Talk

Current time is 18:31

[ 12 queries - 0.022 second ]
Privacy Policy