[text] abc

Viewer

  1. DECLARE
  2.     a NUMBER := 45;
  3.     b NUMBER := 67; 
  4.     c NUMBER := 21; 
  5.     greatest_number NUMBER;
  6. BEGIN
  7.     IF a > b AND a > c THEN
  8.         greatest_number := a; 
  9.     ELSIF b > a AND b > c THEN
  10.         greatest_number := b; 
  11.     ELSE 
  12.         greatest_number := c; 
  13.     END IF; 
  14.     
  15.     dbms_output.Put_line('Greatest number is ' || greatest_number); 
  16. END;
  17. /
  18.  

Editor

You can edit this paste and save as new:


File Description
  • abc
  • Paste Code
  • 26 Apr-2024
  • 377 Bytes
You can Share it: