Created
July 15, 2012 20:58
-
-
Save keverw/3118602 to your computer and use it in GitHub Desktop.
Birthdate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.m | |
// structure | |
// | |
// Created by Kevin Whitman on 7/15/12. | |
// Copyright (c) 2012 __MyCompanyName__. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
int main(int argc, const char * argv[]) | |
{ | |
@autoreleasepool { | |
int matt = 21; | |
if (matt == 18) | |
{ | |
NSLog(@"Matt is 18!"); | |
} | |
else if (matt == 21) | |
{ | |
NSLog(@"Matt is 21! Buy him a drink!"); | |
} | |
else | |
{ | |
NSLog(@"Matt is %d!", matt); | |
} | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment