using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace bt_81
{
class Program
{
static void Main(string[] args)
{
int i, s = 0;
string t = "";
for (i = 1; i < 1000; i++)
{
if (i % 5 == 3 && i % 7 == 4)
{
s = s + i;
t = t + i + "\t";
}
}
Console.WriteLine("tong la:" + s);
Console.Write("cac so thoa man dkien dbai la:" + t);
Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace bt_81
{
class Program
{
static void Main(string[] args)
{
int i, s = 0;
string t = "";
for (i = 1; i < 1000; i++)
{
if (i % 5 == 3 && i % 7 == 4)
{
s = s + i;
t = t + i + "\t";
}
}
Console.WriteLine("tong la:" + s);
Console.Write("cac so thoa man dkien dbai la:" + t);
Console.ReadKey();
}
}
}