Computer Science, asked by tarikaramani, 4 months ago

Akshith wants to find the remainder using C++ program. Explain
him which operator will help in finding the remainder of a division
with an example.

Answers

Answered by keyboardavro
3

Answer:

Explanation:

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