tp05
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
printf("%.15f\n", 12345.678910111213);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Executable
BIN
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
printf("%f\n", +1.0/0.0);
|
||||
printf("%f\n", -1.0/0.0);
|
||||
printf("%f\n", -0.0/0.0);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
i
|
||||
Executable
BIN
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
printf("%f\n", 5.0+2.5);
|
||||
printf("%f\n", 5.0-2.5);
|
||||
printf("%f\n", 5.0*2.5);
|
||||
printf("%f\n", 5.0/2.5);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
float nombre;
|
||||
char caractere;
|
||||
|
||||
printf("Entrez un nombre réel : ");
|
||||
scanf("%f", &nombre);
|
||||
|
||||
printf("En notation scientifique : %e\n", nombre);
|
||||
|
||||
printf("Entrez un caractère : ");
|
||||
scanf(" %c", &caractere);
|
||||
|
||||
for (int i = 0; i < 5; i++) {
|
||||
printf("%c", caractere);
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user