Write a PL / SQL using Iteration To check Natural Number Or Not - Computer Programming

Latest

C C++ Java Python Perl Programs Examples with Output -useful for Schools & College Students

Friday, September 29, 2017

Write a PL / SQL using Iteration To check Natural Number Or Not


Using Iteration To check Natural Number Or Not


PROGRAM:

Declare
NUM number:=&N;
begin
if(NUM>0)
dbms_output.put_line (NUM||'Natural Number');
else
dbms_output.put_line (NUM||'Wrong Number');
exit when NUM1=100;
end if;
end;

OUTPUT:
-6.5
-6.5 Wrong Number

No comments:

Post a Comment