[ create a new paste ] login | about

Link: http://codepad.org/Wrkou8mj    [ raw code | output | fork ]

PHP, pasted on Sep 15:
1
2
3
4
5
6
7
8
9
10
11
<?php
$input = 423219;
$rev = 0;

while ($input > 0) {
    $rev = ($rev * 10 + ($input % 10) );
    $input = $input / 10;
    echo $input;exit;
}

echo $rev;


Output:
1
42321.9


Create a new paste based on this one


Comments: