Challenge: Three Lines About C++

Lab C++ Beginner 10 points

Print these three lines, exactly as shown:

C++ is fast.
I write code.
The compiler builds it.

Input

None.

Output

The three lines above.

Example

Output

C++ is fast.
I write code.
The compiler builds it.
Sample output available
Editor
C++

Hints

End each line with \n or endl.

Every instruction ends with a semicolon.

Solution explanation

Each cout prints one line, and \n moves to the next line.

Show solution
#include <iostream>
using namespace std;

int main() {
    cout << "C++ is fast.\n";
    cout << "I write code.\n";
    cout << "The compiler builds it.\n";
    return 0;
}
Output
Answer
HOME LABS COMMUNITY DASHBOARD