• + 1 comment

    For C# LINQ

    int result = arr.Aggregate(1, (a, b) => (b * a)%1234567);