Determine ODD or EVEN Number (Java Programming)
Example the question will ask the user to enter integer and the program will determine the number is ODD or EVEN.
the program below will ask the user the enter one number, and the program will determine the number is odd or even. IF the user is enter odd number the program will send output "FALSE". The output will be true if and only if the user key in the EVEN number. The Programm will stop if the user ENTER 0 (Zero) .
example EVEN Number : 2,4,6,8 ....
example ODD Number: 1,3,5,7 ....
Sample Output:
the program below will ask the user the enter one number, and the program will determine the number is odd or even. IF the user is enter odd number the program will send output "FALSE". The output will be true if and only if the user key in the EVEN number. The Programm will stop if the user ENTER 0 (Zero) .
example EVEN Number : 2,4,6,8 ....
example ODD Number: 1,3,5,7 ....
Sample Source code:
Like this post :
Incoming Search:
academic Chords , academic Lirik , academic Lyric , academic mp3 , academic lagu , academic 4share , academic kord , academic online , academic download , academic piano , academic ukelele ,
|
No comments :
Post a Comment