i having a scenario get product/multiply of array integers. were i'm to able for sum using below line of code
NSNumber* sum = [intarr valueForKeyPath: @"@sum.self"];
Using NSExpression also able to get sum but not getting product/Multiply
NSExpression *expression = [NSExpression expressionForFunction:@"sum:" arguments:@[[NSExpression expressionForConstantValue:intarr]]];
id result = [expression expressionValueWithObject:nil context:nil];
can anyone suggest me how to get product/multiply of self Array of integer