how to print in new lines in C++

#include <iostream>

int main() {
    // Method 1: Using multiple cout statements
    std::cout << "Line 1" << std::endl;
    std::cout << "Line 2" << std::endl;

    // Method 2: Using a single cout statement with newline character '\n'
    std::cout << "Line 3\n";

    // Method 3: Using endl manipulator
    std::cout << "Line 4" << std::endl;

    return 0;
}