C++ Program:

- To find Quotient and Remainder

Example:

User Input:
Dividend : 7
Divisor : 5

Output:
Quotient : 1
Remainder : 2

#include <iostream>
using namespace std;

int main() {
  int divisor, dividend;
  cout<<"Enter your dividend : ";
  cin>>dividend;
  cout<<"Enter your divisor : ";
  cin>>divisor;

  cout<<"Quotient : "<<dividend/divisor;
  cout<<"\nRemainder : "<<dividend%divisor;
  return 0;
}

Output:

  Enter your dividend : 7
  Enter your divisor : 2

  Quotient : 3
  Remainder : 1
Program
basic
dividend / divisor // use devision( / ) operator to find quotient
dividend % divisor // use modulus( % ) operator to find remainder

modulus( % ) operator used to find remainder, & devision( / ) operator used to find quotient

Concept

Coming Soon !

Quick
Tutorial

Quote

We are all now connected by the Internet, like neurons in a giant brain.