Skip to content

Instantly share code, notes, and snippets.

@Svastikkka
Created June 12, 2020 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Svastikkka/31f083642344f60b930727d88f099d72 to your computer and use it in GitHub Desktop.
Save Svastikkka/31f083642344f60b930727d88f099d72 to your computer and use it in GitHub Desktop.
num,g=input().split()
hra=(20*int(num)/100)
da=(50*int(num)/100)
allow=0
if g == "B":
allow=allow+1500
elif g == "A":
allow=allow+1700
else:
allow = allow + 1300
pf=(11*int(num)/100)
salary = int(num)+hra+da+allow-pf
print(round(salary))
@Svastikkka
Copy link
Author

Total Salary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment