Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 28, 2020 18:56
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 parzibyte/dd3fda0f61cd4e8ef58b1d0bdc0c743f to your computer and use it in GitHub Desktop.
Save parzibyte/dd3fda0f61cd4e8ef58b1d0bdc0c743f to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(void)
{
int lineas;
printf("Ingresa la cantidad de líneas para el triángulo: ");
scanf("%d", &lineas);
int i;
for (i = 1; i <= lineas; i++)
{
int j;
for (j = 0; j < i; j++)
{
printf("*");
}
printf("\n");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment