How do we write a program to print your name age address using read data statement in QBASIC?

1 answer

Answer

1237805

2026-08-05 15:25

+ Follow

In QBASIC, you can use the INPUT statement to read data for your name, age, and address. Here's a simple program example:

<code class="language-basic">DIM name AS STRING

DIM age AS INTEGER DIM address AS STRING

INPUT "Enter your name: ", name INPUT "Enter your age: ", age INPUT "Enter your address: ", address

PRINT "Name: "; name PRINT "Age: "; age PRINT "Address: "; address

</code>

This program prompts the user to enter their name, age, and address, then prints the collected information.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.