c++ program on exception handling
Program 1 #include <iostream> using namespace std; int main() { system(“cls”); int a,b,c; cout<<“Enter two number for division: “<<endl; cin>>a>>b; try { if(b==0) throw(“can not divide by zero…..”); c=a/b; cout<<“Ans of (a/b) is :...
Program 1 #include<iostream> #include<stdexcept> using namespace std; int main() { int a,b,c; cout<<“Enter two number”; cin>>a>>b; try { if(b==0) throw(runtime_error(“Can not devide by Zero”)); c=a/b; cout<<c; } catch(const std::exception &e) { std::cerr << e.what()...