#include <stdio.h>
void main(){
double a, b;
a = 0.1;
b = 0.2;
printf("a+b %s 0.3\n", ((a
+b
== 0.3) ? "==" : "!=")); printf("(a+b)*10 %s 3\n", (((a
+b
)*10 == 3) ? "==" : "!=")); printf("(int)((a+b)*10) %s 3\n", (((int)((a
+b
)*10) == 3) ? "==" : "!=")); }
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIG1haW4oKXsKCWRvdWJsZSBhLCBiOwoJYSA9IDAuMTsKCWIgPSAwLjI7CgoJcHJpbnRmKCJhK2IgJXMgMC4zXG4iLCAoKGErYiA9PSAwLjMpID8gIj09IiA6ICIhPSIpKTsKCXByaW50ZigiKGErYikqMTAgJXMgM1xuIiwgKCgoYStiKSoxMCA9PSAzKSA/ICI9PSIgOiAiIT0iKSk7CglwcmludGYoIihpbnQpKChhK2IpKjEwKSAlcyAzXG4iLCAoKChpbnQpKChhK2IpKjEwKSA9PSAzKSA/ICI9PSIgOiAiIT0iKSk7Cn0K