Free2Code
 
Time: 2008-12-04, 08:37pm
little program
Subject: little program  ·  Posted: 2006-11-03, 04:31am
Rank: ? (1)
Member #: 28986
can you write a java application to allow the user to enter the number of lines and the type of character to be used and the type of the drawing of any of the two following shapes an empty square:if the innput is 5,*,1 respectively.Then the output will look like:
*****

* *

* *

* *

*****


2.A diamond :if the input is 5,*2 respectively.Then the output will look like :

*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*

» Post edited 2006-11-03, 04:33am by kevinDf.

 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons