Computer Science, asked by celestiaSangma1549, 1 year ago

Write qbasic program that display quotient and remainder of any two number

Answers

Answered by piyushatre29
2

#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;

}

if this program helps u mark as brainleist

Similar questions