Exercise 1: Function To Check Sum
In this exercise, you have to write a code to add integers and return their sum using the pass by value method
We'll cover the following...
Problem Statement
Write a method checkSum
which
-
Takes two integers
num1
andnum2
.- pass by value method is used to pass the arguments to method.
-
Has a
check
variable whose value gets updated as explained below. ...