Skip to content

Instantly share code, notes, and snippets.

@keverw
Created July 15, 2012 20:58
Show Gist options
  • Save keverw/3118602 to your computer and use it in GitHub Desktop.
Save keverw/3118602 to your computer and use it in GitHub Desktop.
Birthdate
//
// 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