31) C PROGRAM TO FIND LARGEST ELEMENT IN AN ARRAY
LOGIC:- Create an array and initialize size of array must be known,because loop is required.now let a variable compare this variable with every element of array if it is larger then value not change if array element is larger than the variable then store the array value in variable . It is doing until the loop is not terminated.
EXAMPLE:-
"""SHARE WITH YOUR FRIENDS"""
LOGIC:- Create an array and initialize size of array must be known,because loop is required.now let a variable compare this variable with every element of array if it is larger then value not change if array element is larger than the variable then store the array value in variable . It is doing until the loop is not terminated.
EXAMPLE:-
"""SHARE WITH YOUR FRIENDS"""
Comments
Post a Comment