Within the inner loop add 2 to the value of the varaible sum.
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
int n = 4; int m = 3;
int sum = 0;
Console.WriteLine(sum);
}
}
}
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
int n = 4; int m = 3;
int sum = 0;
Console.WriteLine(sum);
}
}
}

Mounnad MohamedRank #1,633 · 945 reputationPosted Dec 15, 2018, 6:01 AM EST
C# Corner8 reputationPosted Dec 15, 2018, 6:20 AM EST