Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Palindrome Number
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int remainder, reverse = 0; int num = Convert.ToInt32(343); Console.WriteLine(num); while (num > 0) { remainder = num % 10; reverse = reverse * 10 + remainder; num = num / 10; } Console.WriteLine(reverse); } } }
run
|
edit
|
history
|
help
0
remove special char
testing endpoint
Only unique chars into string?
T
rangeofset
Quickly reach memory limit
shorten file paths in a commandline using regex
a
fun with yield return
Basma-1