import'dart:io';main(){stdout.writeln('Center Lenght?');intcenter=int.tryParse(stdin.readLineSync());if(center==null||center%2==0){print('Center can\'t be null or an even number');}for(vari=1;i<center;i+=2){print((" "*((center-i)~/2))+("*"*i));}for(vari=center;i>=1;i-=2){print((" "*((center-i)~/2))+("*"*i));}}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Dart