R1.03/cm2-nombres-code/floatdouble.c
Francois Lesueur 0a34bcbf3e update cm2
2022-09-13 08:45:13 +02:00

16 lines
231 B
C

#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");}
}