C++ Program to find the quotient and remainder

This program takes in two integers x and y as a screen input from the user. It then calculates their quotient and remainder and outputs them using the 'cout' command. Here is the program

This program takes in two integers x and y as a screen input from the user.
It then calculates their quotient and remainder and outputs them using the 'cout' command.

## Find the quotient and remainder

#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int x,y,quotient,remainder;
cout << "Enter the dividend ";
cin>>x;
cout << "Enter the divisor ";
cin>>y;
quotient=x/y;
remainder=x-(quotient*y);
cout << "Quotient of " << x << " & " << y << " = " << quotient << "n";
cout << "Remainder" << " = " << remainder << "n";
return 0;
getch();
}
 Program in C++ to find Quotient and remainder

SAMPLE INPUT

23 4

SAMPLE OUTPUT

Quotient of 23 & 4 = 5
Remainder = 3

Name

ltr
item
MindxMaster: C++ Program to find the quotient and remainder
C++ Program to find the quotient and remainder
This program takes in two integers x and y as a screen input from the user. It then calculates their quotient and remainder and outputs them using the 'cout' command. Here is the program
https://4.bp.blogspot.com/-ZJ0LRTsyUFg/VsKIvVdShHI/AAAAAAAAAIw/_QNDED8t3s0/s400/c.jpg
https://4.bp.blogspot.com/-ZJ0LRTsyUFg/VsKIvVdShHI/AAAAAAAAAIw/_QNDED8t3s0/s72-c/c.jpg
MindxMaster
http://www.mindxmaster.com/2016/02/c-program-to-enter-two-integers-and.html
http://www.mindxmaster.com/
http://www.mindxmaster.com/
http://www.mindxmaster.com/2016/02/c-program-to-enter-two-integers-and.html
true
5332415103371288268
UTF-8