C++ program – Quotient & Remainder

by Nideesh C on May 1, 2011 · 0 comments

in C++




/* 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 Plugin for WordPress, Blogger...
Be Sociable, Share!

Related posts:

  1. Sample – Program to enter two integers and print the quotient and remainder.
  2. C program – Finding remainder
  3. Sample – Program to enter a sentence and output the number of uppercase & lowercase consonants, uppercase & lowercase vowels in sentence..
  4. How to monitor switch activity and its performance with LED Light
  5. Program to implement Binary Search Algorithm

Leave a Comment

Previous post:

Next post: