Question from the C++ - Fundamentals test

Write a C++ function that returns the largest of 3 integers.

Hard

What does the following code return ?

int saisirEntier() {
    int n;
    cout << "Saisir un entier" << endl;
    cin >> n;
    if (n > 0) {
        return n;
    }
}

int main() {
    int n = saisirEntier();
    return 0;
    cout << "Success !" << endl;
}
Author: SamuelStatus: PublishedQuestion passed 212 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!