The Program in C++ to Print a Welcome Text in a separate line is given below:
#include <iostream>
int main() {
std::cout << "Welcome!" << std::endl;
return 0;
}
Output:
Welcome!
Pro-Tips💡
This program uses the iostream
library to output the string “Welcome!” to the console,
and the endl
manipulator to add a new line after the text is printed.
The main
function is the entry point of the program, and the return 0;
statement at the end of the function indicates that the program has completed execution successfully.
Learn C-Sharp ↗
C-sharp covers every topic to learn about C-Sharp thoroughly.
Learn C Programming ↗
C-Programming covers every topic to learn about C-Sharp thoroughly.
Learn C++ Programming↗
C++ covers every topic to learn about C-Sharp thoroughly.