Dart String Manipulations: Building Strings in loop

Jeet BhaluJeet Bhalu
1 min read

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
0
Subscribe to my newsletter

Read articles from Jeet Bhalu directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Jeet Bhalu
Jeet Bhalu

i am Jeet Bhalu i am flutter App developer