Answer:
Following are the code to the given points:
#include <iostream>//header file
using namespace std;
int main()//defining main method
{
cout<<"Hello World!"<<endl;//print message for code 1
cout<<"Hello world!\nHow are you?"<<endl;//print message for code 2
cout<<"Hello world!\nHow are you? \n \t (I'm fine).";//print message for code 3
return 0;
}
Output:
Please find the attached file.
Explanation:
In the given code, inside the main method, three print statement is used, that prints the given message which is defined in the question, for the printing of the message we use "\n, endl, and \t".
In which the "\n and endl" both are used in C++, to break the line into a new-line, and "\t" is used for providing a tab space.