In what concerns the continuous evaluation solving exercises grade during the semester, you should submit until 23:59 of November 2nd
(this exercise will still be available for submission after that deadline, but without counting towards your grade)
[to understand the context of this problem, you should read the class #04 exercise sheet]


In this problem you should submit a function as described. Inside the function do not print anything that was not asked!

[IP025] Summing Numbers

Little Robert is just starting to learn how to sum numbers... Can you help him?

The Problem

Write a function sum(a,b) that given two integers a and b returns their sum.

Constraints

The following limits are guaranteed in all the test cases that will be given to your program:

-1000 ≤ a, b ≤ 1000       The numbers you will sum

Example Function Calls Example Output
print( sum(1,2)   )
print( sum(-3,3)  )
print( sum(32,10) )
print( sum(7,8)   )
print( sum(4,-7)  )
3
0
42
15
-3

Introduction to Programming (CC1024)
DCC/FCUP - University of Porto