using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester
{
public class Program
public static void Main(string[] args)
int sum = 0;
for (int i = 100; i <= 1001; i++)
Console.WriteLine(i);
sum += i;
}
Console.WriteLine("Sum = {0}", sum);
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester
{
public class Program
{
public static void Main(string[] args)
{
int sum = 0;
for (int i = 100; i <= 1001; i++)
{
Console.WriteLine(i);
sum += i;
}
Console.WriteLine("Sum = {0}", sum);
}
}
}