1. Course
  2. Functions A
  3. Function returning a value

Function returning a value


Last updated: 8/23/2020 Difficulty: Easy

Create a C# program that implements a function called Add that returns the sum of two whole numbers passed by parameter. Then you must execute the function from the Main of the program.

Input

4
4

Output

8

Solution

Functions A

3 / 9

Android App


Practice C# anywhere with the free app for Android devices.

Android App

Exercises C# by difficulty


Learn C# at your own pace, the exercises are ordered by difficulty.

Make a donation


Your donations support our work and contribute to the maintenance of the app.

Advertising