Math, asked by anshuangupta2506, 11 months ago

Write a algorithm to find the largest number in a list

Answers

Answered by gill132237
3

Answer:

Input: A = 2, B = 8, C = 1

Output: Largest number = 8

Input: A = 231, B = 4751, C = 75821

Output: Largest number = 75821

Answered by surya1038
1

Answer:

CLS

INPUT"ENTER A LIMIT";L

DIM A(L)

FOR I = 1 TO L

INPUT"ENTER THE NUMBERS";A(I)

NEXT I

MAX=0:C=0

FOR J= 0 TO L

IF A(J) 'GREATER THAN SIGN' THEN MAX=A(J):C=J

NEXT J

PRINT MAX"CELL NO=";C

END

Similar questions