Challenge: Three Lines About C++
Completed
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.
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
You can practice without logging in. Log in to save completion.
Save your progress
You're practising as a guest, so your progress won't be saved.
- Track every lab you complete
- Earn verifiable lab certificates
- See your progress in every module