Re: Program help/ Integers
Hi,
Your program doesn't compile, it is not complete. Please put some more effort to it. :)
To read user you can utilize the java.util.Scanner class. It has a set of method that allows you to read integer data. And then calculates this numbers to get the sum. To know if the number is even or odd you can use the modulo operator (%).
Re: Program help/ Integers
Hello and welcome! Please use [code][/code] tags when posting code so we can easily read it!
Forum Rules
Guide For New Members
BB Code List - Java Programming Forum