Skip to content

Instantly share code, notes, and snippets.

@cshtdd
Created February 15, 2015 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cshtdd/6a2189de73405fbabc87 to your computer and use it in GitHub Desktop.
Save cshtdd/6a2189de73405fbabc87 to your computer and use it in GitHub Desktop.
/*
loop-sample.cpp
*/
#include <iostream>
using namespace std;
/*
# Build with the following command
g++ -Wall loop-sample.cpp -o loop-sample && ./loop-sample
*/
int main()
{
int myNumber = 0;
cin >> myNumber;
for (int i = 0; i < 4; i++)
{
cout << "Alex";
cout << " Saldana";
cout << myNumber;
cout << " ";
}
cout << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment