Skip to content

Instantly share code, notes, and snippets.

@Mohamed2del
Last active June 1, 2022 02:50
Show Gist options
  • Save Mohamed2del/aafd35930d448ef2ca30a7450b9d1097 to your computer and use it in GitHub Desktop.
Save Mohamed2del/aafd35930d448ef2ca30a7450b9d1097 to your computer and use it in GitHub Desktop.
Write a program to prompt the user for hours and rate per hour using input to compute gross pay. Use 35 hours and a rate of 2.75 per hour to test the program (the pay should be 96.25).
hrs = input("Enter Hours:")
y = input("Enter the rate:")
x =float(hrs) * float(y)
print("Pay:",x)
@maktekai
Copy link

maktekai commented Jun 1, 2022

thank mohaded

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