Qbasic program to print the smallest among ten different numbers  

Posted by Mahibabu

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

0 comments

Post a Comment

Contributors

My photo
I am Mahesh Bhandari from Kathmandu, Nepal

Check Nepal's Time