Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
FuncDelegate
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Globalization; using System.Threading; namespace Rextester { public class Program { public static void Main(string[] args) { Func<int,int> addOne = n => n+1; Func<int,int,int> addNums = (x,y) => x+y; Func<int,bool> isZero = n => n == 0; Console.WriteLine(addOne(5)); Console.WriteLine(isZero(addNums(-5,5))); int [] a = {0,1,0,3,4,0}; Console.WriteLine(a.Count(isZero)); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
ZeroMatrix
Merge Sample
minimal path for triangle
Bridge Design Patern
Interface With Ambiguity Problem
Intuit // C# // Lecture_4 // Laba_#2
Random number between 1 - 100 between each value of 10 there will be a differnt message
Count the number of capital letters, small letters, digits, spaces and special characters.
Download a .NET assembly, and execute a static, parameterless method.
Hello
stackse - search stackoverflow differently
Please log in to post a comment.