Manual No 13
Manual No 13
SWEN221101044
Chapter 13
Objectives
Introduction
Output
57
58 Lab 13:Stored procedures in PL/SQL
Output
Write a Procedure to check the given number is prime or not by using call
procedure.
PROCEDURE DEFINITION:
/
chec:=1;
END IF;
END; END LOOP;
DECLARE
chec NUMBER;
given_number NUMBER;
BEGIN
given_number:=&given_number;
isprimepro(given_number,chec);
IF chec=1 THEN
dbms_output.put_line(’number is not prime’);
ELSE
dbms_output.put_line(’number is prime’);
END IF;
END;
/
Output