KnowledgeBoat Logo
|

Computer Studies

Write a program in QBASIC format to print the total amount paid to the shopkeeper for purchasing the following items:

Number of exercise books = 10   
Number of brown paper rolls = 4  

QBASIC

QBASIC: Input Statement

31 Likes

Answer

Cls
Let books = 10
Let rolls = 4
Input "Enter the price of exercise books "; p1
Input "Enter the price of paper rolls "; p2
Let total = books * p1 + rolls * p2
Print "Total Amount = Rs. "; total
End

Output

Enter the price of exercise books ? 200
Enter the price of paper rolls ? 20
Total Amount = Rs. 2080

Answered By

10 Likes


Related Questions