Horje
C++ Quotient and Remainder Code Example
C++ Quotient and Remainder
    int a, b, c, d;

    cout << "Input the dividend" << endl;
    cin >> a;
    cout << "Input the divisor" << endl;
    cin >> b;

    c = a / b;
    d = a % b;

    cout << "The quotient is: " << c << endl;
    cout << "The remainder is: "<< d << endl;




Cpp

Related
c++ schleife abbrechen Code Example c++ schleife abbrechen Code Example
c++ bind what are placeholders Code Example c++ bind what are placeholders Code Example
initialisation of a c++ variable Code Example initialisation of a c++ variable Code Example
binary algebra cpp Code Example binary algebra cpp Code Example
fill vector with zeros c++ Code Example fill vector with zeros c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10