TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mngaro Mwazenje
NA
80
13.1k
print the range between given numbers, input by user
Feb 17 2020 5:26 AM
Create the method public static void PrintNumbersInRange(List<int> 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??
Reply
Answers (
7
)
search for string in a list if found say "name" found if not
i have got one json . i want to read it in following way