Advertisement
paperline27

menghasilkan.pola.segitiga.siku-siku.pl

Feb 25th, 2024
1,465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.17 KB | Source Code | 0 0
  1. print "Masukkan tinggi segitiga: ";
  2. my $tinggi = <STDIN>;
  3. chomp($tinggi);
  4.  
  5. for my $i (1..$tinggi) {
  6.     for my $j (1..$i) {
  7.         print "* ";
  8.     }
  9.     print "\n";
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement