#include <iostream> using namespace std; int main() { int dividend,divisor,quotient=0; cout<<"Enter dividend :" << endl; cin>>dividend; cout<<"Enter divisor:" << endl; cin>>divisor; if(divisor==0) cout<<"Divide by zero Issue"; else { while((dividend>0) && (dividend>=divisor)) { dividend = dividend-divisor; quotient++; } cout<<"Quotient is:" <<quotient; } return 0; } Output: Enter dividend: 10 Enter divisor: 3 Quotient is: 3