Controle Machine
This commit is contained in:
parent
95be98b88e
commit
27f7820773
BIN
APL1.1/CM1/Fleur
Executable file
BIN
APL1.1/CM1/Fleur
Executable file
Binary file not shown.
14
APL1.1/CM1/Fleur.c
Normal file
14
APL1.1/CM1/Fleur.c
Normal file
@ -0,0 +1,14 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main (void) {
|
||||
printf (" _\n");
|
||||
printf (" _( )_\n");
|
||||
printf (" (_(%)_)\n");
|
||||
printf (" /(_)\n");
|
||||
printf ("__ | \n");
|
||||
printf ("\\_\\|\n");
|
||||
printf (" |\n");
|
||||
printf (" |\n");
|
||||
return EXIT_SUCCESS;
|
||||
}
|
BIN
APL1.1/CM1/Flopée
Executable file
BIN
APL1.1/CM1/Flopée
Executable file
Binary file not shown.
10
APL1.1/CM1/Flopée.c
Normal file
10
APL1.1/CM1/Flopée.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
int main(void){
|
||||
int i;
|
||||
int j = i*i*i
|
||||
for (i=0;i<;i++){
|
||||
printf("%d ",i);
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
}
|
BIN
APL1.1/CM1/Format
Executable file
BIN
APL1.1/CM1/Format
Executable file
Binary file not shown.
16
APL1.1/CM1/Format.c
Normal file
16
APL1.1/CM1/Format.c
Normal file
@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
unsigned int a = 65U;
|
||||
int b = 65;
|
||||
float c = 65.00;
|
||||
signed char d = 65;
|
||||
printf("%u\n", a);
|
||||
printf("%hhd\n", d);
|
||||
printf("%.0f\n", c);
|
||||
printf("%s\n", b);
|
||||
printf("%.0f\n", c);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
BIN
APL1.1/CM1/Foulées
Executable file
BIN
APL1.1/CM1/Foulées
Executable file
Binary file not shown.
35
APL1.1/CM1/Foulées.c
Normal file
35
APL1.1/CM1/Foulées.c
Normal file
@ -0,0 +1,35 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main (void){
|
||||
int distance,tour = 192,nombre_tours,distance_restante,demi_tours;
|
||||
printf("Entrez une distance en mètres : ");
|
||||
scanf("%d",&distance);
|
||||
nombre_tours = distance/tour;
|
||||
distance_restante = distance - (192*nombre_tours);
|
||||
if (distance_restante < 96){
|
||||
if (nombre_tours > 1 ){
|
||||
printf("Vous avez effectué %d tours\n",nombre_tours);
|
||||
}
|
||||
if (nombre_tours == 1 ){
|
||||
printf("Vous avez éffectué 1 tour\n");
|
||||
}
|
||||
if (nombre_tours == 0 ){
|
||||
printf("Vous n'avez pas efféctué un tour\n");
|
||||
}
|
||||
}
|
||||
else{
|
||||
if (nombre_tours > 1 ){
|
||||
printf("Vous avez effectué %d tours et demi\n",nombre_tours);
|
||||
}
|
||||
else{
|
||||
if (nombre_tours = 1 ){
|
||||
printf("Vous avez éffectué 1 tour et demi\n");
|
||||
}
|
||||
if (nombre_tours = 0 ){
|
||||
printf("Vous n'avez effectué un demi tour\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Loading…
Reference in New Issue
Block a user