This repository has been archived on 2019-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
s4-c/TP1/E5-1.c

18 lines
270 B
C
Raw Normal View History

2016-01-17 18:39:09 +01:00
/* Programme qui lit et affiche les caractères */
#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;
}