Notification texts go here Contact Us Buy Now!

Program to find largest of 2 numbers using PL/SQL

Program to find largest of 2 numbers using PL/SQL
Estimated read time: 0 min
Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

Program to find largest of 2 numbers using PL/SQL

Code

DECLARE
   N NUMBER;
   M NUMBER;
BEGIN
  N:=&N; --if : doesn't work use :
  M:=&M;
IF N>M THEN
 DBMS_OUTPUT.PUT_LINE(''|| N ||' IS GREATER THAN '|| M ||'');
   ELSE
 DBMS_OUTPUT.PUT_LINE(''|| M ||' IS GREATER THAN '|| N ||'');
   END IF;
  END;
/

output

7 IS GREATER THAN 5

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.