Answer:
The program to question as follows:
Program:
PRINT "NEPAL", 'print message
PRINT ".EPA", 'print message
PRINT ".P", 'print message
Output:
NEPAL
.EPA
.P
Explanation:
In the above Qbasic program code, the three print function will be used to print the given pattern, that can be described as follows:
- The first time the print function is used, which uses a value, that is "NEPAL" to print its value.
- In the second time, again this function is used, that prints a value, that is ".EPA".
- In the last time, the print method accepts a value, which is ".P" to print its value. when the code is executed, it will print the given design.