17 lines
263 B
C
17 lines
263 B
C
/* Affiche un triangle isocèle rectangle */
|
|
#include <stdio.h>
|
|
|
|
int main() {
|
|
int i, j, n;
|
|
printf("Saisissez N\n");
|
|
scanf("%d", &n);
|
|
printf("%d", n);
|
|
for (i = 1; i <= n; i++) {
|
|
for (j = 1; j <= i; j++) {
|
|
printf("*");
|
|
}
|
|
printf("\n");
|
|
}
|
|
return 0;
|
|
}
|