My Solution for Challenge 2


#1
//  Created by Adam G on 5/17/14.

#import <Foundation/Foundation.h>
#import <readline/readline.h>

int main(int argc, const char * argv[])
{

    @autoreleasepool {
        
    
        NSLog(@"Who is cool? ");
    
        NSString *whoIsCool = [NSString stringWithUTF8String:readline(NULL)];
        
        NSLog(@"%@ is cool\n", whoIsCool);
        
        NSLog(@"Where should I start counting? ");
        
        NSInteger startCount = atoi(readline(NULL));
        
        for (; startCount >= 0 ; startCount -= 3) {
            if (startCount % 5 == 0)
                NSLog(@"%ld Found one!", (long)startCount);
            else
                NSLog(@"%ld", (long)startCount);
            
        }
    }
    return 0;
}