A deduction of $20.00 is taken from the salary of an employee if the salary is less than $300.00 and a deduction of $30.00 if the salary is greater than or equal to $300.00. Input the salary and output the salary less the appropriate deduction.
Start
Declare variable Real salary
Display "Enter salary: "
Input salary
if salary <300.00 then
Display "Deduction: $20.00"
salary=salary-20
else
Display "Deduction: $30.00"
salary=salary-30
end if
Display "Salary: ",salary
Stop
Comments
Leave a comment