/* program to read 2 no & print Quotient & Remainder */
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int q,r,a,b;
cout<<"Enter 2 nos :"<<endl;
cin>>a>>b;
q=a/b;
r=a%b;
cout<<"Quotient = "<<q<<endl<<"Remainder = "<<r;
getch();
}
Not Satisfied ? Just search & get the result
Related posts:
- Sample – Program to enter two integers and print the quotient and remainder.
- C program – Finding remainder
- Sample – Program to enter a sentence and output the number of uppercase & lowercase consonants, uppercase & lowercase vowels in sentence..
- How to monitor switch activity and its performance with LED Light
- Program to implement Binary Search Algorithm
