Console.WriteLine("Podaj imię:");
name = Console.ReadLine();
Console.WriteLine("Podaj nazwisko:");
surname = Console.ReadLine();
Console.WriteLine($"\n\nWitaj {name} {surname}!");
Console.WriteLine($"Proszę podaj liczbę w przedziale od {int.MinValue} do {int.MaxValue}");
number = int.Parse(Console.ReadLine());
Console.WriteLine($"Twoja liczba o 1 mniejsza to: {number - 1}. Przypominam, że Twoja liczba była to: {number}");
Console.WriteLine("Format liczby jest nie prawidłowy.");
catch (OverflowException)
Console.WriteLine("Twoja liczba nie mieści się w przedziale.");