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
Komolafe Yonusimi
NA
14
635
Why is count used instead of array length
Jan 18 2018 10:01 AM
Please I am a beginner to programming, why is count used in the for loop so far it is 0 and not if i is less than the number array length.
count = 0
for
(
int
i = 0; i < count; i++)
if
(numbers[i] == searchNumber)
found =
true
;
if
(found)
Console.WriteLine(
"Number {0} found a amount of {1} "
, numbers[i]);
else
{
Console.WriteLine(
"Not found"
);
found =
false
;
}
break
;
Reply
Answers (
2
)
How to access Native controls in C# such brightness control?
how to make slider listview in xamarin