Respuesta :

Answer:

It depends upon the programming language that you are working on, and you can set your own error message using the try catch option. As an example, suppose you are working on the C#. Code like below can be added:

using System;

class MainClass {

static void Main(string[] args) {

int a = 5;

int b= 0;

int c= 100/2;

console.WriteLine(c);

try {

int d = a / b;

} catch (DivideByZeroException err) {

Console.WriteLine(err);

}

}

}

System.DivideByZeroException: Attempted to divide by zero.

This will give the above error message. And this is an error message by the system. We can also have a user-defined error message.

Explanation:

Please check the answer.