using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
int sum = 0;
for(int sum = 0; i < 5; i++)
{
sum += i;
}
for(int i > 0; i--)
{
sum += i;
}
Console.WriteLine(sum);
}
}
}
Code not compiling, cant find the problem?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jignesh KumarRank #91 · 22.9K reputationPosted Dec 8, 2018, 3:51 AM EST
Sanwar RanwaRank #23 · 44.7K reputationPosted Dec 9, 2018, 2:18 AM EST