Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Prime number
Declare n number:=49; i number:=2; temp number:=1; Begin for i in 2..n/2 loop if mod(n,i)=0 then temp:=0; exit; end if; end loop; if temp=1 then dbms_output.put_line('Given number is a prime number'); else dbms_output.put_line('Given number is not a prime number'); end if; End;
run
|
edit
|
history
|
help
0
even and odd plsql block
regexp example
Srinivas
Supplier
s
Factorial from SQL
sss
DBMS
wq1
create table