Write a c++ program to implement exception handling
#include <iostream> using namespace std; double division(int a, int b) { if( b == 0 ) { throw “Division by zero condition!”; } return (a/b); } int main () { int x ; cout<<”x= “; cin>>x; int y ; cout<<”y= “; cin>>y; double z ; try { z = division(x, y); cout << z << …
Write a c++ program to implement exception handling Read More »