Menu
Coddy logo textTech

Recap Challenge #1

Lesson 12 of 14 in Coddy's Strings and Arrays in C# course.

challenge icon

Challenge

Easy

Write a function named sigma that gets an array of integers and returns the sum of all its elements.

Try it yourself

using System;

class Sigma {
    public static int sigma(int[] nums) {
        // Write code here
    }
}

All lessons in Strings and Arrays in C#