1 Streams & cout
C++ uses std::cout with the << operator for output and endl (or "\n") for newlines.
#include <iostream>
using namespace std;
int main() {
cout << "Hello, C++!" << endl;
cout << "2 + 2 = " << (2 + 2) << endl;
return 0;
}