Notification texts go here Contact Us Buy Now!

PL/SQL Program to Check Number is Odd or Even

PL/SQL Program to Check Number is Odd or Even
Estimated read time: 0 min
Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

PL/SQL Program to Check Number is Odd or Even

Code

declare
n number:=:n;
begin
if mod(n,2)=0
then
dbms_output.put_line('number is even');
else
dbms_output.put_line('number is odd');
end if;
end;
/
/

output

number is odd

Statement processed.
  

Getting Info...

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.