WSQ08 Functions

The functions allow to structure programs in segments of code to perform individual tasks.

In this program I´m going to do the same as in the WSQ03, but using functions.

You have to enter two numbers and the program will calculate:

  • 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.

 

Captura de pantalla 2016-02-09 a las 11.05.07 a.m.Captura de pantalla 2016-02-09 a las 11.05.10 a.m.Captura de pantalla 2016-02-09 a las 11.05.23 a.m.

I will leave the code on GitHub, here is the link.

3dBOlpw_700wa_0

TC101

WSQ08

 

CC BY-SA 4.0 WSQ08 Functions by josequirogablog is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.