A voir également:
- Programmation C
- Programmation - Guide
- Application de programmation - Guide
- Logiciel programmation clé voiture gratuit - Forum Programmation
- Programmation logo tortue télécharger - Télécharger - Études & Formations
- Scratch programmation - Télécharger - Éducatifs
1 réponse
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int nombre;
int cpt, i, j;
if(argc != 2){
printf("Usage : main <Number>");
system("PAUSE");
exit(-1);
}
nombre = atoi(argv[1]);
if(nombre < 1){
printf("Le nombre entré doit être supérieur à 0");
system("PAUSE");
exit(-2);
}
cpt = 0;
for(i=0;i<nombre;i++){
cpt++;
for(j=0;j<cpt;j++){
printf("+");
}
printf("\n");
}
system("PAUSE");
return 0;
}