j'ai ajouter le reste
This commit is contained in:
8
DEV1.1/CONTROLE/controle.c
Normal file
8
DEV1.1/CONTROLE/controle.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
int main(void){
|
||||
printf("{o,o}\n");
|
||||
printf("(__(\\\n");
|
||||
printf("-\"-\"-");
|
||||
return 0;
|
||||
}
|
||||
3
DEV1.1/CONTROLE/distribution.c
Normal file
3
DEV1.1/CONTROLE/distribution.c
Normal file
@@ -0,0 +1,3 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
int main(void)
|
||||
16
DEV1.1/CONTROLE/histogramme.c
Normal file
16
DEV1.1/CONTROLE/histogramme.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
int main(void){
|
||||
int tab[20] = {8,12,14,3,1,5};
|
||||
int l = 6;
|
||||
int i;
|
||||
int a;
|
||||
for(i = 0; i < l; i++){
|
||||
for(a=0; a< tab[i]; a++){
|
||||
printf("▄ ");
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
16
DEV1.1/CONTROLE/parite.c
Normal file
16
DEV1.1/CONTROLE/parite.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
int main(void){
|
||||
int ent1;
|
||||
int ent2;
|
||||
printf("Donnez un entier : ");
|
||||
scanf("%d\n", &ent1);
|
||||
printf("Donnez un entier : ");
|
||||
scanf("%d\n", &ent2);
|
||||
if (ent1%2 == 0 || ent2%2 == 0){
|
||||
printf("Pair");
|
||||
}
|
||||
else
|
||||
printf("Impair");
|
||||
return 0;
|
||||
}
|
||||
13
DEV1.1/CONTROLE/triage.c
Normal file
13
DEV1.1/CONTROLE/triage.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
int main(void){
|
||||
double a = 2.0;
|
||||
int b = 02;
|
||||
char c = (char) '\x32';
|
||||
long int d = 2L;
|
||||
printf("%.0lf\n", a);
|
||||
printf("%d\n", b);
|
||||
printf("%c\n", c);
|
||||
printf("%ld\n", d);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user