code a function that takes 2 parameters and an algorithm, print out all the numbers between the 2 parameters that completes the algorithm
Utilisateur anonyme
void foo(int a, int b, Func algo) { for(int i =a; i < b;i++) { if(algo(i)) { Console.WriteLine(i); } } }