static double solve(double A,double B)
if(B==0) msg="Решение е всяко число ";
throw new ArithmeticException(msg);
public static void Main()
Console.WriteLine("Решение на уравнението Ax=B");
A=Double.Parse(Console.ReadLine());
Console.Write("Параметър B=");
B=Double.Parse(Console.ReadLine());
Console.WriteLine("Решение x={0}",x); }
Console.WriteLine(e.Message);