Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- namespace MathOperations
- {
- class Program
- {
- static void Main(string[] args)
- {
- Func<int, double> getValue = x => Math.Log(x % 10 - 2);
- var numbers = Enumerable.Range(0, 100).Where(x => getValue(x) >= 1 && getValue(x) <= 2);
- Console.WriteLine(string.Join(" ", numbers));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement