Skip to content

Instantly share code, notes, and snippets.

@P1xt
Created August 5, 2014 19:12
Show Gist options
  • Save P1xt/f2e643c558380268ef2c to your computer and use it in GitHub Desktop.
Save P1xt/f2e643c558380268ef2c to your computer and use it in GitHub Desktop.
Exercise 2
/**
* Change the "Hello, World!" example above to display another line.
* If Spock were doing this exercise, he might add to
* it so that it would display:
*
* Hello, World!
* Live long and prosper.
*
**/
#include <iostream>
using namespace std;
/**
* @brief main()
*
* @return int
*/
int main() {
cout<<"Hello, World!\n";
cout<<"Live long and prosper.";
cin.get();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment