Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. // 2. Query creation.
  2. var numQuery =
  3. from num in numbers
  4. where (num % 2) == 0
  5. select num;
  6.  
  7. // 3. Query execution.
  8. foreach (int num in numQuery)
  9. {
  10. Console.Write("{0,1} ", num);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement