anti virus

anti virus

  • NA
  • 17
  • 3.5k

for loop help with this problem?

Dec 17 2018 2:12 PM
result i should be getting is 1086420 but im getting '101112' anyone see any mistakes?
 
using System;


namespace HelloWorld
{
class Program
{


static void Main(string[] args)
{
string result = "";

for (int i = 10; i < 13; i++)
{
result += i;
}
Console.WriteLine(result);
Console.ReadLine();
}

}
}




 

Answers (1)