Ajout des fichiers des séances précédentes
This commit is contained in:
21
DEV1.1/TP07/sequence.c
Normal file
21
DEV1.1/TP07/sequence.c
Normal file
@@ -0,0 +1,21 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main (void){
|
||||
int a, b ;
|
||||
printf("Entrez deux entiers : ");
|
||||
scanf(%d ,&a);
|
||||
scanf %d" , &b);
|
||||
|
||||
if (a > b) {
|
||||
int tmp = a;
|
||||
a = b;
|
||||
b = tmp;
|
||||
}
|
||||
|
||||
int i= 0
|
||||
while (i<10){
|
||||
;
|
||||
i = i + 1;
|
||||
}
|
||||
}
|
||||
11
DEV1.1/operations.c
Normal file
11
DEV1.1/operations.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
printf("%5.0f\n", 5.0+2.5);
|
||||
printf("%5.0f\n", 5.0-2.5);
|
||||
printf("%5.0f\n", 5.0*2.5);
|
||||
printf("%5.0f\n", 5.0/2.5);
|
||||
printf("%.5.0f\n", 5.0%2.5);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
7
DEV1.1/poussiere.c
Normal file
7
DEV1.1/poussiere.c
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
printf("%.12f\n ", 12345.678910111213);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user