Write a program in C++ to print welcome text on a separate line

0 0
Read Time:13 Second

Here’s a simple C++ program to achieve that:

#include <iostream>
using namespace std;

int main() {
    cout<<"Welcome to"<<endl;
    cout<<"CodeDixa"<<endl;
    return 0;
};

When you run this program, it will output:

Welcome to
CodeDixa
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %