English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

1 answers

You have to verify if the number in the loop is multiple of the all numbers in the other loop. Like this (in C++):

for (int i = 1; i <= 100; i++)
{
for (int j = 1; j < i; j++)
{
...
}
}

you'll change the ... for the operation.

2007-03-13 02:12:02 · answer #1 · answered by Edison 2 · 0 0

fedest.com, questions and answers