How to find quotient and remainder in c++ program

  • on April 21, 2020
  • Likes!

Hello Friends! Welcome to the programming shortcut and to we will run c++ program to find quotient and remainder and compute dividend divisor quotient remainder by this program will help you to make quotient and remainder calculator

c++ program to find quotient and remainder

#include<iostream>
using namespace std;
int main() {
int x,y,quo,rem;
cout<<“Enter divident number”<>x;
cout<<“Enter divisor number”<>y;
if(y){
quo=x/y;
rem=x%y;
cout<<“Quotient=”<<quo<<endl<<“Remainder=”<<rem<<endl;
}else{
cout<<“Qivisor is must be greater then zero”;
}
retrun 0;
}
Output:
Enter divident number
3456
Enter divisor number
234
Quotient=14
Remainder=180

I make this programming and hope you are like the post if are you like the post you can please comment and share the post to reach more people.
If any doubt about this c++ programming code or input & output please comment below
If you have another question about c++ programming send an email by contacting us form is given on the page right side.

Share your experience about this post,
Thank You!

Article Categories:
Programs in cpp

Leave a Reply

Your email address will not be published. Required fields are marked *