To calculate the discount amount, multiply the amount with discount percentage and divide it by 100 and then initialize it to a variable that hold the discount value say discount .
To calculate the discount amount, multiply the amount with discount percentage and divide it by 100 and then initialize it to a variable that hold the discount value say discount .