Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print "Masukkan tinggi segitiga: ";
- my $tinggi = <STDIN>;
- chomp($tinggi);
- for my $i (1..$tinggi) {
- for my $j (1..$i) {
- print "* ";
- }
- print "\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement