Computer Science, asked by 1212121212212123423, 6 months ago

write a program in QBASIC to enter 20 numbers and display the maximum and minimum number among the given set of numbers​

Answers

Answered by BRAINLY1856
0

Explanation:

I don't know do thank me

Answered by Anonymous
1

Answer:

this is the answer

Explanation:

CLS

DIM A(20)

PRINT "ENTER THE VALUE "

FOR I=1 TO 20

INPUT A(I)

NEXT I

PRINT "THE VALU LE ARE "

FOR I=1 TO 20

PRINT A(I)

NEXT I

MAX=A(0)

MIN =A(0)

FOR I=1 TO 20

IF A(I)>MAX THEN

MAX=A(I)

END IF

NEXT I

FOR I=1 TO 20

IF A(I)<MIN THEN

MIN=A(I)

END IF

NEXT I

PRINT "MAXIMUM ELEMENT "; A(I)

PRINT "MINIMUM ELEMENT "; A(I)

END

Similar questions