Find Quotient and Remainder in C++(C Plus Plus)

Find Quotient and Remainder in C++(C Plus Plus)

In this latest tutorial, we will cover the following topics;
  1. 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

Find Quotient and Remainder in C++(C Plus Plus)

Prof. Fazal Rehman Shamil
Researcher, Publisher of International Journal Of Software Technology & Science ISSN: 2616-5325
Instructor, SEO Expert, Web Programmer and poet.
Feel free to contact.