Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Check Even-Odd:-Example

Now, you have to learn about the syntax of If-Else construct.

Tutorial Details:

Given example reads a integer value and check weather number is Odd or Even. In this example you will learn how to determine the Even or Odd for the given number entered through the keyboard.

If the given condition is true then print the message Given number is Even otherwise the control of the program will jumps in the else block and print the message Given number is Odd.


 

Rate Tutorial:
http://www.roseindia.net/java/beginners/IfElse.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Check Even-Odd:-Example

View Tutorial:
Check Even-Odd:-Example

Related Tutorials:

Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.