.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Post New Resource Bookmark and Share   

Reverse The Given Number Using Console Application...

Posted By:Ghanashyam Nayak       Posted Date: December 04, 2010    Points: 15    Category:    URL: http://www.dotnetspark.com  

Code for reverse the given user number in console application...
 

Sub Main()
	Dim num, i As Integer
	Console.WriteLine("Enter the number : ")
	n = Console.ReadLine()
	While (n > 0)
		i = (n Mod 10)
		Console.WriteLine(i)
		n /= 10
	End While
	Console.ReadLine()
End Sub

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend