Create the method public static void PrintNumbersInRange(List numbers, int lowerLimit, int upperLimit) in the exercise template. The method prints the numbers in the given list whose values are in the range [lowerLimit, upperLimit]. A few examples of using the method are supplied below.
- List<int> numbers = new List<int>();
- numbers.Add(3);
- numbers.Add(2);
- numbers.Add(6);
- numbers.Add(-1);
- numbers.Add(5);
- numnbers.Add(1);
- Console.WriteLine("The numbers in the range [0, 5]");
- PrintNumbersInRange(numbers, 0, 5);
The numbers in the range [0, 5]
3
2
5
1
anyone??

Guest UserPosted Feb 18, 2020, 3:51 AM
Mngaro MwazenjePosted Feb 18, 2020, 4:47 AM