Advertisement
ivanwidyan

Program That Displays Multiple Lines of Text onto The Screen

Oct 14th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     cout << "I have two friends" << "\n";
  6.     cout << "John is my friend\n";
  7.     cout << "Bob is my friend" << endl;
  8.     system("pause");
  9. }
  10.  
  11. Result:
  12. I have two friends
  13. John is my friend
  14. Bob is my friend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement