namespace FibonacciFreeze
public static void Main(string[] args)
Console.WriteLine("Fibonacci Freeze");
Console.Write("Enter a row number: ");
input = Console.ReadLine();
if (Int32.TryParse(input, out digit) == true)
Console.WriteLine("Please enter positive vaues only. Zero or negative input is not allowed.");
for (int i = 1; i <= digit; i++)
total = fibonacciDigit - total;
Console.WriteLine("The Fibonacci Freeze for " + digit + " is " + fibonacciDigit + ".");
Console.WriteLine("Please enter a numeric value only. Alphabetical letters are not allowed.");
Console.Write("Do you want to try again? [Y/y]");
answer = Console.ReadLine();
} while ((answer == "Y") || (answer == "y"));
Console.WriteLine("End of the program, Press any key to exit...");