Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Reverse of a number
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
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;
absolute service time: 0,87 sec
edit mode
|
history
|
discussion
Reverse of the number is: 274