Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,
Could any one help me to print.


- - * - -
- * * * -
* * * * *
- * * * -
- - * - -

Thanks
Posted

If we help you to solve such a trivial problem, you will loose the chance to learn something by doing your job all by yourself. I would not call it "help", it would be rather something opposite. Your school gives you the chance to learn something with will pay of well later. Use this chance well.

—SA
 
Share this answer
 
See Solution 1 at Star Patterns in One Line[^]. I know that is C# code but it should help you to understand the concept.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900