Write a c++ program on the topic myself.The program must have 15 cout statement but the output must be on ten lines. The first output line must be heading of the message and the second must be underline between the last but one line and the last line of your output there must be three line spaces .your program must both have end line or new line
#include <iostream>
using namespace std;
int main()
{
cout<<"\nMyself"<<endl;
cout<<"\n------------------------------------------------"<<endl;
cout<<"\n"<<endl;
cout<<"\n"<<endl;
cout<<"\n"<<endl;
cout<<"\nMyself"<<endl;
cout<<"\nMyself"<<endl;
cout<<"\nMyself"<<endl;
cout<<"\nMyself"<<endl;
cout<<"\nMyself"<<endl;
cout<<"\nMyself"<<endl;
cout<<"\nMyself"<<endl;
cout<<"\nMyself"<<endl;
cout<<"\nMyself"<<endl;
cout<<"\nMyself"<<endl;
return 0;
}
Comments
Leave a comment