What time of loop is used when you know how many times the loop instructions should be processed?

1 answer

Answer

1279305

2026-05-10 15:56

+ Follow

It's best to use a for loop.

For example, if you want 10 iterations:

for (int i = 1; i <= 10; i++)
{
// Any commands you write here will repeat 10 times.

}

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.