What is the difference between tab and comma in QBasic?

1 answer

Answer

1059566

2026-04-15 19:50

+ Follow

In QBasic, the TAB function is used to position output at a specific column in the console, allowing for aligned text formatting, while the COMMA option in PRINT statements formats numbers with a comma separating thousands for better readability. For example, using TAB(10) would start printing text at the 10th column, whereas using , would display a number like 1000 as "1,000". Thus, TAB controls text positioning, while COMMA affects numeric output formatting.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.