Sunday, December 1, 2013
Home »
Program Dividend Divisor Quotient Remainder
,
Program Division
,
Program Find Out Quotient and Remainder
» Program Find Quotient and Remainder of Division
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
*/
#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();
}
0 comments:
Post a Comment
We Love To Hear From You!