Last active
June 1, 2022 02:50
-
-
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).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hrs = input("Enter Hours:") | |
y = input("Enter the rate:") | |
x =float(hrs) * float(y) | |
print("Pay:",x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank mohaded