Half Pyramid of number in Dart

import 'dart:io';
void main() {
  int rows = 5;
  for (int i = 0; i < rows; i++) {
    for (int j = 0; j <= i; j++) {
      stdout.write('1 ');
    }
    stdout.writeln();
  }
}


OUTPUT


Half Pyramid of number in Dart