Find Biggest Element in Array | Largest number in Array | Maximum value in an Array using for loop

Опубликовано: 24 Март 2021
на канале: Azhar Techno Coder
451
61

1. Find a biggest element in the array ?

1 | 9 | 8 | 5 | 7

Code :

dim a(4)

a(0) = 1
a(1) = 9
a(2) = 20
a(3) = 10
a(4) = 7

largest = a(0)

for i = 0 to Ubound(a) - 1
if a(i) (greather than) largest then
largest = a(i)
end if
next

msgbox "The biggest element in the array is : "&largest




Video Tags:

0:00 - Introduction to find Biggest Element in Array
2:15 - Program to find Biggest Element in Array
5:26 - Explanation of Program
8:40 - End Tags and Subscription to channel

What are arrays?
What is a biggest element in an array ?
How to find biggest element in an array ?
How to find greatest element in an array?
Array Examples

#Arrays
#BiggestElement
#howtofind

---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
Must Watch Playlist
► 1. Vbscript Basics To Advanced -    • VBScript Part 1 -  Features Advantage...  
► 2. Tech works -    • Video  
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------


#YouTube #YouTuber #AzharTechnoCoder