Find Quotient and Remainder in C++(C Plus Plus)
In this latest tutorial, we will cover the following topics;
- Find Quotient and Remainder in C++(C Plus Plus)
// Find Quotient and Remainder #include <iostream> using namespace std; int main() { int dividen,divisor,x,y; cout<<"Enter The Dividend ="; cin>>dividen; cout<<"Enter The Divisor ="; cin>>divisor; x=dividen/divisor; y=dividen%divisor; cout<<"Quotient is "<<x<<endl; cout<<"Remainder is "<<y<<endl; }
Output: