i found:
CalculPoids = p.Poids/(Enumerable.Repeat(10, p.Sum / 10).Concat(Enumerable.Repeat(p.Sum % 10, 1))).Count()
More Related Contents:
- Combine elements of a list [closed]
- What’s the difference between System.ValueTuple and System.Tuple?
- Tuples( or arrays ) as Dictionary keys in C#
- Better naming in Tuple classes than “Item1”, “Item2”
- What requirement was the tuple designed to solve?
- How to easily initialize a list of Tuples?
- Equivalent of Tuple (.NET 4) for .NET Framework 3.5
- Will a future version of .NET support tuples in C#?
- Why I could not serialize a tuple in C#? [duplicate]
- Using a C# 7 tuple in an ASP.NET Core Web API Controller
- Is Using .NET 4.0 Tuples in my C# Code a Poor Design Decision?
- Get all pairs in a list using LINQ
- How can I get more than one random numbers in a specific range using C#?
- Using async/await for multiple tasks
- How to enable CORS in ASP.net Core WebAPI
- Why can’t I unbox an int as a decimal?
- Setting the User-Agent header for a WebClient request
- Good GetHashCode() override for List of Foo objects respecting the order
- Is relying on && short-circuiting safe in .NET?
- System.ValueType Understanding
- How to get the name of color while having its RGB value in C#?
- Treeview flickering?
- Filtering include items in LINQ and Entity Framework [duplicate]
- GetResponseAsync does not accept cancellationToken
- ASP.NET MVC 5 error handling
- How are people unit testing with Entity Framework 6, should you bother?
- Save time with parallel FOR loop
- Need to get a string after a “word” in a string in c#
- Regular expression to validate valid time
- How can I split (copy) a Stream in .NET?