Fun With Numbers(Pro Version)

 -Fun with numbers 2                                                                                          @PablO_CVi

Write a function for each calculation. Each function should define two parameters (in this example of type int) and return the correct value as an integer as well.

 

  • The sum of the two numbers.
  • The difference of the two numbers.
  • The product of the two numbers.
  • The integer based division of the two numbers (so no decimal point). First divided by second.
  • The remainder of integer division of the two numbers

Here is my code: https://github.com/PablOCVi/WSQ/blob/master/WSQ08.py  

CC BY 4.0 Fun With Numbers(Pro Version) by Pablo is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.