Computer Studies

The rate of petrol is ₹ 47.60 per litre. You paid ₹ 250 to the pump attendant and asked for 5 litres of petrol to be filled in the tank. Write a program in QBASIC to calculate the cost of petrol and the amount of money refunded.

QBASIC

QBASIC: Cmds & Stmts

57 Likes

Answer

Cls
Let RATE = 47.6
Let COST = 5 * RATE
Let PAID = 250
Let REFUND = PAID - COST
Print "MONEY REFUNDED = Rs. "; REFUND
END

Output

MONEY REFUNDED = Rs. 12

Answered By

30 Likes


Related Questions