How do you find the greater number in qbasic?

1 answer

Answer

1292352

2026-05-06 02:30

+ Follow

Give your numbers the names 'A' and 'B', and use these program lines.

Whichever of the two numbers is greater will be printed.

G = A

If B > A THEN G = B.

PRINT "The greater number is "; G

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.