PL/SQL Program to Check Number is Odd or Even

Here you will get pl/sql program to check number is odd or even.

A number is even if it is completely divisible by 2 otherwise it is odd.

 

PL/SQL Program to Check Number is Odd or Even

 

Output

Enter value for n: 7
old   2:        n number:=&n;
new   2:        n number:=7;
number is odd

3 thoughts on “PL/SQL Program to Check Number is Odd or Even

  1. Leonardo

    Hi fellas,
    I’m wondering if that works only or int numbers, I’ve tried for numbers with decimal digits and didn’t get the expected results. Do you know a simple solution for non-int numbers?

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.