Dart String Manipulations: Building Strings in loop

Dart String Manipulations: Building Strings in loop

What is Loop?

  • A loop is used in Dart or any other programming language to repeat a sequence of commands a given number of times or until it satisfies a condition.

Exapmle:

void main()
{
      int i;
      for (i = 2; i <= 1024; i *= 2)
      {    
          print(i.toString());
      }
}

Output:

2
4
8
16
32
64
128
256
512
1024