<html> <head></head> <script type ="text/javascript"> <html> <head></head> <script type ="text/javascript"> var reverse = 0; var n = prompt("Enter reverse numbers: "); while (n != 0) { reverse = reverse * 10; reverse = reverse + parseInt(n%10); n = parseInt(n/10); } document.write(" The reverse of the number: "+reverse); </script> <body> </body> </html> and here's what I've done so far var reverse = 0; var n = prompt("Enter reverse numbers: "); do { reverse = reverse * 10; reverse = reverse + parseInt(n%10); n = parseInt(n/10); } document.write(" The reverse of the number: "+reverse); }while(n != 0);} When I run this it output a blank. Don't know where I got mistake. Thanks to your help God bless
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)