To print this pattren using c++ code
Firstly, do realize you are posting in the JAVA (not C++) forum.
Secondly: do you have an actual question to go with this post?
If your question is in the line of "gimme the code", the answer would be: no.
This forum is visited by thousands of programmers over the world, willing to dedicate their spare time to help you improve your coding skills, not to help you cheat on your assignments.
When you subscribed to DaniWeb, you agreed to follow the community rules. Please read the second one under the header 'Keep It Organized'