Dart Print * Pattern

 

import 'dart:io';

void main() {

 for(int i=5;i>=1;i--)
    {
      for(int j=1;j<=i;j++)
        {
          stdout.write(new String.fromCharCode(j+64));
        }
      print("");
    }

}

 

Output

ABCDE
ABCD
ABC
AB
A