using System; class Erind2{ public static void Main(string[] arg){ try{ string tekst1="Tere"; int arv1=int.Parse(tekst1); Console.WriteLine(arv1); }catch(FormatException probleem){ Console.WriteLine("Viga teisendusel: "+probleem.Message); } } } /* C:\Projects\oma\naited>Erind2 Viga teisendusel: Input string was not in a correct format. */