Skip to content

Instantly share code, notes, and snippets.

@abhi923
Created April 26, 2020 12:19
Show Gist options
  • Save abhi923/6d917f83473f23a280ce4ce0a3038f3e to your computer and use it in GitHub Desktop.
Save abhi923/6d917f83473f23a280ce4ce0a3038f3e to your computer and use it in GitHub Desktop.
# input a float value for variable a here
a = float(input("Value of a: "))
# input a float value for variable b here
b = float(input('Value of B: '))
# output the result of addition here
print ( 'a+b: ', a + b)
# output the result of subtraction here
print('a-b: ', a - b)
# output the result of multiplication here
print ('ab: ', a*b )
# output the result of division here
print ('a/b: ', round(a/b, 2))
print("\nThat's all, folks!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment