Saturday, March 9, 2013

Program to compare two numbers using if else

The term conditional statements is used for If, If-Else,Switch etc.
Conditional statements are used to execute a block of code for a specific condition.

Want complete explanation on conditional statements : visit

After getting idea about conditional statements now check this program, this program is using if-else statement to compare two numbers :

2 comments:

  1. how to compare two even numbers using if-statement

    ReplyDelete
    Replies
    1. What you want to compare ? Please explain your query.

      Delete

Powered by Blogger.