Skip to content

Instantly share code, notes, and snippets.

@yosefsadek
Created January 18, 2020 00:51
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 yosefsadek/9dce47cc0fbea117c123c3b19b08f9ea to your computer and use it in GitHub Desktop.
Save yosefsadek/9dce47cc0fbea117c123c3b19b08f9ea to your computer and use it in GitHub Desktop.
py
hours = int(input("Enter the number of hours worked: "))
bears = int(input("Enter the number of toy made: "))
hourswage = hours * 7
bearswage = bears * 0.45
total = hourswage + bearswage
print("Your total wage is: £{:.2f}".format(total))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment