Online Objective-C Compiler
										
										
#import <Foundation/Foundation.h>

int main (int argc, const char * argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    int x = 20;
    int y = 40;

    NSLog(@"Sum of x + y = %i", (x+y));

    [pool drain];
    return 0;
}
                                
                                

Output Results

										
2022-07-05 06:55:30.345 jdoodle[25:25] Sum of x + y = 60