Hands-On Exercise 1

Create a QBASIC program that uses two variables N and S in your DIM statement.
N represents a number that will be accepted as input from the keyboard.
S represents the computed square of that number.

Allow your QBASIC program to run in a loop.  This means that a new number will continually be accepted as input and the computed square of the number will be generated as a result.  You may use a counter based from the video presented last week to generate the output shown below.

Note:
The screen output should be appear in this manner:

Please enter a number:  1
The computed square of the number is:  1

Please enter a number:  2
The computed square of the number is: 4

Please enter a number:  3
The computed square of the number is: 9

Please enter a number:  4
The computed square of the number is: 16

Please enter a number:  5
The computed square of the number is:  25

Please enter a number:  6
The computed square of the number is 36

Please enter a number:  7
The computed square of the number is: 49

Please enter a number: 8
The computed square of the number is:  64

Please enter a number: 9
The computed square of the number is: 81

Please enter a number:10
The computed square of the number is: 100