Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CalculatorDivideFunction
- {
- internal void GetResultByDivide(int p1, int p2)
- {
- if (p2 == 0)
- {
- throw new DivideByZeroException("Dividor can not be 0 !!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement