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 MohamedPosted Dec 15, 2018, 11:01 AM
C# CornerPosted Dec 15, 2018, 11:20 AM