Computer Science, asked by gaikwadmariya482, 11 months ago

To enter 10 positive numbers and print the smallest of them.(QBASIC) ​

Answers

Answered by phenomenalguy
3

Hi friend......❤️

REM Program to print the smallest among ten different numbers

CLS

INPUT "Enter first number"; n

FOR i = 2 TO 10

INPUT "Enter next number"; s

IF s < n THEN

n = s

END IF

NEXT i

PRINT "The smallest number is"; n

END

Similar questions