Computer Science, asked by 20144694, 3 days ago

WRITE A QBASIC PROGRAM TO CONVERT RS.80.70 INTO PAISE.​

Answers

Answered by anindyaadhikari13
2

Solution:

The given problem is solved in QBASIC.

CLS

RS = 80.70

PAISE = RS * 100

PRINT "Amount in RS:"; RS

PRINT "Amount in PAISE:"; PAISE

END

Explanation:

  • Line 1: Clears the screen. CLS command is used to clear the screen.
  • Line 2: A variable is created which stores the amount in rupees.
  • Line 3: Another variable is created which stores the amount in paise. Since 1 rupee is equal to 100 paise, the amount in rupees is multiplied with 100.
  • Line 4-5: The resultant amount of money is displayed on screen.
  • Line 6: End of program.

See attachment for output.

Attachments:
Similar questions