Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
prime number programe using pl/sql
declare n number; i number; temp number; begin n := 1; i := 2; temp := 1; 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('true'); else dbms_output.put_line('false'); end if; end;
run
|
edit
|
history
|
help
0
123
Understanding basic loop
query
add pl/sql
Srinivas
Factorial from SQL
HELLO WORLD
PL/SQL declaracionVariables
cursor
Oracle Sandbox: Dog Data