answersLogoWhite

0

it's codes in c# console Apllication is :

int a, m, sum;

sum = 0;

for (a = 1; a <= 1000; a++)

{

m = 1;

while (m <= a)

{

if (a % m sum)

Console.WriteLine(a.ToString());

sum = 0;

}

Console.ReadLine();

User Avatar

Wiki User

13y ago

What else can I help you with?