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. if( a -( int ) a == 0.) printf( "TAK\n" );
  9. else printf( "NIE\n" );
  10.  
  11. }
Success #stdin #stdout 0.01s 2724KB
stdin
Standard input is empty
stdout
NIE