fork download
  1. #import <objc/objc.h>
  2. #import <objc/Object.h>
  3.  
  4. int main()
  5. {
  6. double a =2.440000, b=2.42000;
  7.  
  8. if(abs(a-b)<1e-3) {
  9. // code here, a == b
  10. //cout<<"a==b"<<endl;
  11. //NSLog(@"a==b");
  12. printf("a==b");
  13. } else {
  14. // code here, a != b
  15. //cout<<"a!=b"<<endl;
  16. //NSLog(@"a!=b");
  17. printf("a!=b");
  18. }
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0.01s 10176KB
stdin
Standard input is empty
stdout
a!=b