Skip to content

Instantly share code, notes, and snippets.

@mochja
Created April 15, 2013 11:18
Show Gist options
  • Save mochja/5387407 to your computer and use it in GitHub Desktop.
Save mochja/5387407 to your computer and use it in GitHub Desktop.
int main(int argc, const char * argv[])
{
clrscr();
int v = 10;
int i, j;
int x = 1;
int y = 1;
for (i = 1; i <= v; i++) {
gotoxy(x+v-i, y+i-1);
for (j = 0; j < i+i-1; j++) {
cout << "*";
}
}
cout << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment