Q. An electricity board charges the bill depending on the number of units consumed as follows:

UnitsCharge
First 100 units40 P per unit
Next 200 units60 P per unit
Above 200 unitsRs. 1 per unit

WAP to print the net bill to be paid by a consumer. The net bill includes a rent of Rs. 250.00 charged from a consumer.

  • Enter the number of units consumed:
  • Net unit to paid: