Created
June 28, 2020 19:02
-
-
Save parzibyte/16ea8357b77ff665835dc11a10ce5e19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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