My code is working correct ,But still failing test cases

My Code URL is :-https://ide.codingblocks.com/s/650255

Plz see my code and correct it.

sorry i posted in wrong doubt

will reply soon after watching your code wait

your code is correct
try to put a tab after each star
like this

cout<<"*\t";

this should work

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.