Ask Question

Write qbasic code for given pattern

NEPAL

. EPA

. P

+5
Answers (1)
  1. 23 March, 05:49
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write qbasic code for given pattern NEPAL . EPA . P ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers