#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
/* local variable definition */
int a = 10;
/* 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 );
}
return 0;
}
I2ltcG9ydCA8Rm91bmRhdGlvbi9Gb3VuZGF0aW9uLmg+CgppbnQgbWFpbihpbnQgYXJnYywgY29uc3QgY2hhciAqIGFyZ3ZbXSkgewogICAgLyogbG9jYWwgdmFyaWFibGUgZGVmaW5pdGlvbiAqLwogICAgaW50IGEgPSAxMDsKICAgIAogICAgLyogY2hlY2sgdGhlIGJvb2xlYW4gY29uZGl0aW9uIHVzaW5nIGlmIHN0YXRlbWVudCAqLwogICAgaWYoIGEgPCAyMCApIHsKICAgICAgICAvKiBpZiBjb25kaXRpb24gaXMgdHJ1ZSB0aGVuIHByaW50IHRoZSBmb2xsb3dpbmcgKi8KICAgICAgICBOU0xvZyhAImEgPSAlZCBpcyBsZXNzIHRoYW4gMjBcbiIsIGEgKTsKICAgIH0KICAgIHJldHVybiAwOwp9