From e6e4d00d824dfdd8e209b6a0ec88a6995d320f9e Mon Sep 17 00:00:00 2001 From: tanusri23 <91791444+tanusri23@users.noreply.github.com> Date: Sat, 2 Oct 2021 20:47:29 +0530 Subject: [PATCH] Create division.cpp --- hacktoberfest2021_1/division.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 hacktoberfest2021_1/division.cpp diff --git a/hacktoberfest2021_1/division.cpp b/hacktoberfest2021_1/division.cpp new file mode 100644 index 0000000..628d6fa --- /dev/null +++ b/hacktoberfest2021_1/division.cpp @@ -0,0 +1,21 @@ +#include +using namespace std; + +int main() +{ + int divisor, dividend, quotient, remainder; + + cout << "Enter dividend: "; + cin >> dividend; + + cout << "Enter divisor: "; + cin >> divisor; + + quotient = dividend / divisor; + remainder = dividend % divisor; + + cout << "Quotient = " << quotient << endl; + cout << "Remainder = " << remainder; + + return 0; +}