Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 28, 2020 19:02
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/16ea8357b77ff665835dc11a10ce5e19 to your computer and use it in GitHub Desktop.
Save parzibyte/16ea8357b77ff665835dc11a10ce5e19 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 = lineas; i >= 1; 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