| import 'dart:io'; |
| void main() { |
| int rows = 5; |
| for (int i = 0; i < rows; i++) { |
| for (int j = 0; j <= i; j++) { |
| stdout.write(" "); |
| } |
| |
| for (int k = 0; k <= rows - 1 - i; k++) { |
| stdout.write("* "); |
| } |
| |
| stdout.writeln(); |
| } |
| } |
OUTPUT
| |
| * * * * * * * * * * * * * * * |
0 Comments
Please Do Not Comments Any Span Or Span link..