C++ tutorial, C++ programs, C++ Exercises, C++ Example Programs

Showing posts with label Program Find Out Quotient and Remainder. Show all posts
Showing posts with label Program Find Out Quotient and Remainder. Show all posts

Sunday, December 1, 2013

Program Find Quotient and Remainder of Division


/*
Program to input a number(dividend) and second number(divisor), and display the Qutient
and remainder of the division.
For Free C++ Programming Techniques (Example Programs), visit
Www.EasyCppProgramming.Blogspot.Com

and For Good Notes
Visit   Www.ForFreeEducation.Blogspot.Com

*/

Free C++ Program to find qutient and Remainder of Division,Program Find Out Quotient and Remainder, Program Division, Program Dividend Divisor Quotient Remainder

#include<iostream.h>
#include<conio.h>
void main()
{
  clrscr();

  int dividend, divisor, q, r;

  cout<<"\n Enter a number (Devidend) =";

  cin>>dividend;

  cout<<"\n Enter a number (divisor) =";

  cin>>divisor;

  q = dividend / divisor;

  r = dividend % divisor;

  cout<<"\n ----------- Results ---------------";

  cout<<"\n Dividend = "<<dividend;

  cout<<"\n divisor = "<<divisor;

  cout<<"\n Quotient = "<<q;

  cout<<"\n Remainder = "<<r;

  getch();

}
Share:

EasyCPPprogramming.blogspotcom

Labels