Karl#!/usr/bin/perl -w use strict;my@AoA;my($x,$y);my$w =20;my$h=20;for$x(0..$w){for$y## (0..$h){$AoA[$x][$y]=sqrt(($x-## 0.5*$w)**2+($y-0.5*$h)**2)/10+## 0.01;}}for$x(0..$w){for$y(0..$h) {if($AoA[$x][$y]>=0&&$AoA[$x]### [$y]<=0.25){print'j';}elsif($AoA [$x][$y]>=0.25&&$AoA[$x][$y]<=## 0.5){print'a';}elsif($AoA[$x]### [$y]>=0.5 &&$AoA[$x][$y]<=0.75)# {print'p';}elsif($AoA[$x][$y]### >=0.75&&$AoA[$x][$y]<=1){print## 'h';}else{print' ';}}print"\n";}
In reply to Really bored at work JAPH by karl_heinrich
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |