update cm2
This commit is contained in:
15
cm2-nombres-code/floatdouble.c
Normal file
15
cm2-nombres-code/floatdouble.c
Normal file
@ -0,0 +1,15 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
float a = 0.1;
|
||||
float b = 0.2;
|
||||
float c = 0.3;
|
||||
|
||||
/* double a = 0.1;
|
||||
double b = 0.2;
|
||||
double c = 0.3; */
|
||||
|
||||
if (a+b == c) {printf("égaux\n");} else {printf("différents\n");}
|
||||
}
|
Reference in New Issue
Block a user