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
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
Math,
2 months ago
Math,
4 months ago
Biology,
4 months ago
Chemistry,
11 months ago
Social Sciences,
11 months ago