#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
/* local variable definition */
int a = 100;
/* check the boolean condition using if statement */
if( a < 20 ) {
/* if condition is true then print the following */
NSLog(@"a = %d is less than 20\n", a );
}
else {
/* if condition is false then print the following */
NSLog(@"a = %d is not less than 20\n", a );
}
return 0;
}
I2ltcG9ydCA8Rm91bmRhdGlvbi9Gb3VuZGF0aW9uLmg+CgppbnQgbWFpbihpbnQgYXJnYywgY29uc3QgY2hhciAqIGFyZ3ZbXSkgewogICAgLyogbG9jYWwgdmFyaWFibGUgZGVmaW5pdGlvbiAqLwogICAgaW50IGEgPSAxMDA7CiAgICAKICAgIC8qIGNoZWNrIHRoZSBib29sZWFuIGNvbmRpdGlvbiB1c2luZyBpZiBzdGF0ZW1lbnQgKi8KICAgIGlmKCBhIDwgMjAgKSB7CiAgICAgICAgLyogaWYgY29uZGl0aW9uIGlzIHRydWUgdGhlbiBwcmludCB0aGUgZm9sbG93aW5nICovCiAgICAgICAgTlNMb2coQCJhID0gJWQgaXMgbGVzcyB0aGFuIDIwXG4iLCBhICk7CiAgICB9CiAgICBlbHNlIHsKICAgICAgICAvKiBpZiBjb25kaXRpb24gaXMgZmFsc2UgdGhlbiBwcmludCB0aGUgZm9sbG93aW5nICovCiAgICAgICAgTlNMb2coQCJhID0gJWQgaXMgbm90IGxlc3MgdGhhbiAyMFxuIiwgYSApOwogICAgfQogICAgcmV0dXJuIDA7Cn0=