static void Main(string[] args)
{
Console.Write("Type Your age: ");
string age = Console.ReadLine();
for (int i = 0; i < age.Length; i++)
{
age = age.Replace("24", "25"); // Replace....
age = age.Replace("a",""); // Remove char....
}
Console.WriteLine("Your age is {0}",age);
Console.ReadLine(); //just nothing
{
לשאלתך הראשונה, int.tryParse, הסבר כוונתך.
מה אתה רוצה לעשות? אולי זה יעזור לי לחשוב על דרך פתרון עבורך.
בברכת שבת שלום
עידו