Computer Science, asked by anjanbh19, 28 days ago

write a program to input basic
salary of a person and print net
salary after adding 15% bonus to the
basic salary​
(please answer)

Answers

Answered by allysia
2

Language:

Python

Program:

salary=int(input("Enter the salary: "))

net_salary= salary + (0.15* salary)

print(f"The net salary is {net_salary}")

Output:

Enter the salary: 1000

The net salary is 1150.0

(Consider the attachment.)

Logic:

  • take salary input.
  • increase it by 15% and save it in net salary.
  • Print the net salary.

Attachment:

Attachments:
Similar questions