Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: Writing sid...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 11028 of 11064
Post > Topic >>

Re: Writing side of square

by questy@[EMAIL PROTECTED] (Jerald Sheets) May 5, 2008 at 09:38 AM

The perl module Graphics::Simple might be able to help you.

Found on CPAN.

--jms


On May 5, 2008, at 9:22 AM, Rodrigo Tavares wrote:

> Hello,
>
> I need create a square using a single number, but I don't know how =20
> to create the sides.
>
> I have to create this:
>
> ****
> *  *
> *  *
> ****
>
> My code is below :
>
> print "Enter with number:";
> chomp ($number =3D <STDIN>);
>
> my @[EMAIL PROTECTED]
 =3D ();
>
> $cont =3D 0;
>
> while ($numero > $cont)
> {
> 	$array[$cont]=3D"*";
> 	$cont++;
> }
>
> print @[EMAIL PROTECTED]
> print "\n";
> print @[EMAIL PROTECTED]
> print "\n";
>
> How I can to show the arrar like sides ?
>
> []'s
>
> Faria
>
>
>      Abra sua conta no Yahoo! Mail, o =FAnico sem limite de espa=E7o
=20=

> para armazenamento!
> http://br.mail.yahoo.com/
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@[EMAIL PROTECTED]
> For additional commands, e-mail: beginners-help@[EMAIL PROTECTED]
> http://learn.perl.org/
>
>




 1 Posts in Topic:
Re: Writing side of square
questy@[EMAIL PROTECTED]   2008-05-05 09:38:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 7:47:57 CDT 2008.