fork download
  1. #import <Foundation/Foundation.h>
  2.  
  3. int main(int argc, const char * argv[]) {
  4. /* local variable definition */
  5. int a = 10;
  6.  
  7. /* check the boolean condition using if statement */
  8. if( a < 20 ) {
  9. /* if condition is true then print the following */
  10. NSLog(@"a = %d is less than 20\n", a );
  11. }
  12. return 0;
  13. }
Success #stdin #stdout #stderr 0.02s 42848KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
2016-05-02 11:30:24.446 prog[31214] a = 10 is less than 20