Write a program that inputs dividend and divisor.It then calculate and display the quotient and remainder.
#include<iostream>
using namespace std;
int main()
{
int dd,dr,q,r;
cout<<"\t Quotient and Remainder Calculator "<<endl;
cout<<"\n";
cout<<"Enter the value of Dividend "<<endl;
cin>>dd;
cout<<"Enter the value of Divisor "<<endl;
cin>>dr;
q=dd/dr;
r=dd%dr;
cout<<"Quotient is "<<q<<endl;
cout<<"Remainder is "<<r<<endl;
}