Computer Science, asked by utkarshrvj9000, 3 months ago

5. To find the remainder of 10 divided by 2, the statement to be used is in c++

Answers

Answered by RICKYSHOBY
0

Answer:

Explanation:

#include <iostream>

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;

Similar questions