|
-
May 6th, 2010, 01:16 AM
#1
Please help with this method!
Write a public static method named starPrinter that will take an int as a parameter and
print lines of stars as shown below.
The header of the method will be public static void starPrinter(int n) .
e.g.
If the value of n is 5, then the method should print
*
***
*****
*******
*********
If the value of n is 3, then the method should print
*
***
*****
Please help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|