1--1

 

#include<iostream.h>
int main()
{
      int dividend,divisor,qutient;
   cout<<"Please enter the divisor:"<<endl;
   cin>>dividend;
   cout<<"Please enter the divisor:"<<endl;
   cin>>divisor;


   if(divisor==0)
       cout<<"Error: the divisor cannot be 0."<<endl;
   else
   {
       qutient=dividend/divisor;
    cout<<"Qutient is"<<qutient<<endl;
  
   }

return 0;


}

你可能感兴趣的:(1--1)