Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#include <iostream>
using namespace std;
int main(){
int dividend;
int divisor;
int quotient;
int remainder;
cout<<"Enter Dividend and Divisor (Dividend/Divisor): ";
cin>>dividend>>divisor;
quotient = dividend / divisor;
remainder = dividend % divisor;
cout<<"Quotient = "<<quotient<<endl;
cout<<"Remainder = "<<remainder<<endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment