logo image

C++ program to print a multiline Hello World!

67


Following program shows you how to print a multiline Hello World!. In this program we use \n for multi lines

#include <iostream>

int main() {
  std::cout << "Hello \nWorld!";
}

Output:

Hello 
World!