Question from the C++ - Fundamentals test

Write a C++ program that prints '3 greater than 1' if 3 is greater than 1, otherwise prints '3 is not greater than 1'.

Medium

What does return the following code ?

int main() {

    if 3 > 1 {
        std::cout << "3 greater than 1" << std:endl;
    } else {
        std::cout << "3 is not greater than 1" << std:endl;
    }
    return 0;
}
Author: SamuelStatus: PublishedQuestion passed 26 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!