Created
April 4, 2014 02:04
-
-
Save newshorts/9966724 to your computer and use it in GitHub Desktop.
Objective C application for determining if one of your 99 problems is a bitch?
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 | |
// NinetyNineProblems | |
// | |
// Created by Mike Newell on 4/3/14. | |
// Copyright (c) 2014 Mike Newell. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
int main(int argc, const char * argv[]) | |
{ | |
@autoreleasepool { | |
int numberOfProblems = 99; | |
NSString *presenceOfBitch = @"ain't one!"; | |
NSString *chorus = [NSString stringWithFormat:@"I've got %i problems but a bitch", numberOfProblems]; | |
for (int i = 0; i < numberOfProblems; i++) { | |
int aBitch = 1; | |
if (i == aBitch) { | |
presenceOfBitch = @"is one!"; | |
} | |
} | |
NSLog(@"%@ %@", chorus, presenceOfBitch); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment