Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Reverse of a number
DECLARE num NUMBER; rev NUMBER; BEGIN num:=472; rev:=0; WHILE num>0 LOOP rev:=(rev*10) + mod(num,10); num:=floor(num/10); END LOOP; DBMS_OUTPUT.PUT_LINE('Reverse of the number is: ' || rev); END;
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Srinivas
sss
Train_Database
neha1
3_max_value_where_job_is_manager
if-else condition in pl/sql
Display the number value in Words
admt
prgm1
pl/sql basic print hello world
Please log in to post a comment.