fork download
  1. #include <cstdio>
  2.  
  3. int main()
  4. {
  5. double a = 0.0;
  6. for( int i = 0; i < 10; ++i ) a += 0.1;
  7.  
  8. printf("%lf\n",a);
  9. if( a -( int ) a == 0.) printf( "TAK\n" );
  10. else printf( "NIE\n" );
  11.  
  12. }
Success #stdin #stdout 0.02s 2724KB
stdin
Standard input is empty
stdout
1.000000
TAK