Dart Print * Pattern

 

import 'dart:io';

void main() {

 for(var i=65;i<=69;i++)
   {
     for(var j=65;j<=i;j++)
       {
         stdout.write(new String.fromCharCode(i));
       }
     print("");
   }
}

 

Output

A
BB
CCC
DDDD
EEEEE