Tutorials

C++ Tutorial

All Tutorials Learning Tools Login

C++ Tutorial · Chapter 4 of 13

C++ Output

Print with cout.

cout << value sends output to the console.

You can chain multiple << operators in one statement.

cout sample Try it Yourself »
#include <iostream>
using namespace std;

int main() {
    cout << "Hello, World!" << endl;
    cout << "CoderKiosk C++ Lab" << endl;
    return 0;
}

Classroom Tips

  • Forgot endl? Output may stay on one line.