using System;
public class Program
{
public static void Main()
/* Cierra Miller
November 30 2020
Checks to see if a word backwards, is the same written normally, AKA if its a palindrome or not. */
string temp = ""; //Declares string variable "temp" equal to nothing yet.
string input; //Declares string variable "input" equal to nothing yet.
Console.WriteLine("please input a single word: "); //Tells the console to write "please input a single word: "
input = Console.ReadLine(); //Lets the user input their word
for (int i = input.Length - 1; i >= 0; i--) //Sets a loop which starts the process of moving the word backwards.
temp = temp + input[i]; //States "temp" is equal to "temp" + "input" along the loop
}
Console.WriteLine(temp); //Tells the console to write out string "temp"
if (temp.Equals(input)) /*States an if statment, to summarize, if the word that is inputted
by the user seems accurate backwards, it would equal true.*/
Console.WriteLine("Pailndrome"); //if the statment is true, it tells the console to write "Pailndrome".
else /*States an else statment, to sumarize.. otherwise if the first statment isnt true we will simply write:
not pailndrome.*/
Console.WriteLine("Not pailndrome");//Tells the console to write "Not pailndrome".