Quiz: Integer Division

What does this program print?

#include <iostream>

int main() {
    int players = 9;
    std::cout << "Pairs: " << players / 2 << "\n";
    std::cout << "Left over: " << players % 2 << "\n";
}

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

7/11