Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Palindrome 2
//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) { //Your code goes here bool ispol = true; string num = "12321"; string revnum = ""; for(int i=num.Length-1;i>=0;i--){ revnum = revnum + num[i]; } if(num != revnum){ ispol = false; } Console.WriteLine("Palindrome: " + ispol); } } }
run
|
edit
|
history
|
help
0
Using System.Reflection to find Property Name and Value of any Generic class
Non-User input - Random Controlled - Guessing Game
binary hacks
Returning the number of 1s in the binary representation of an unsigned integer
Happy
c
uzyskanie daty poniedziaĆku
asasa
List Array
Rotation String