Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Why is count used instead of array length
Komolafe Yonusimi
Jan 18 2018 10:01 AM
169
Reply
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
;
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How to access Native controls in C# such brightness control?
how to make slider listview in xamarin