Challenge 2 Solution

Here it is!:slight_smile: I enjoyed this one:) thanks.

[code]
#import <Foundation/Foundation.h>
#import <readline/readline.h>

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

@autoreleasepool {
    
    NSLog(@"Type in a number:\n\n");
    const char *xi = readline(NULL);
    
    NSString * string =[NSString stringWithUTF8String:xi];
    
    
    
    
    NSLog(@"Here it is %@\n", string);
    
    int x = 0;
    
    
    
    for (x= atoi(xi); x>0 ; x-=3) {
        NSLog(@"%d\n", x);
        if (x % 5 ==0) {
            NSLog(@"Found one.\n");
        }
    }
    
    
}
return 0;

}[/code]