Sum of all integer numbers up to N

Write a function that gets an integer num = 20 as argument than returns sum of all integer numbers up to and including number

Example Solution

When the function called with following input num = 10 it's expected to return 55.

Contributed by Ahmet Önder Gür