using System;
class Program
{
static void Main(string[] args)
{
try {
Console.WriteLine(function(3));
Console.WriteLine(function(0));
}
catch (ArgumentException ex) {
Console.WriteLine("Err: " + ex.Message);
}
}
public static int function(int n) {
if (n == 0) {
throw new ArgumentException("The value 0 is not accepted.");
}
return n * 100;
}
}
/*
run:
300
Err: The value 0 is not accepted.
*/