Rewrite the following using nested switch construct.
#include<iostream>
using namespace std;
int main()
{
int a,b;
cout<<"Enter value for a and b";
cin>>a>>b;
if(b==0)
cout<<"Divide by zero error";
else
if(a==0)
cout<<"The result is zero";
else
cout<<"The result is "<<(float)a/b;
}