第1个回答 2011-01-06
int a = 0;
int b = 0;
int c = 0;
int j = 0;
int d = 0;
for (int i = 0; i < 1000; i++)
{
a = i % 5;
b = i % 7;
if (a == 0 && b == 0)
{
j++;
c = j % 5;
d += i;
Response.Write(i+"<br/>");
if (c == 0)
{
Response.Write("和为:"+d+"<br>");
d = 0;
}
}
}