Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created September 30, 2021 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/91161379008c638cc5f19af587d9e06b to your computer and use it in GitHub Desktop.
Save amankharwal/91161379008c638cc5f19af587d9e06b to your computer and use it in GitHub Desktop.
#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