joe-amoah / python-learning

for learning python
MIT License
1 stars 0 forks source link

Exercise 10: Arithmetic #13

Open Prince-linux opened 4 years ago

Prince-linux commented 4 years ago

Create a program that reads two integers, a and b, from the user. Your program should compute and display: • The sum of a and b • The difference when b is subtracted from a • The product of a and b • The quotient when a is divided by b • The remainder when a is divided by b • The result of log10 a • The result of ab Hint: You will probably find the log10 function in the math module helpful for computing the second last item in the list.