This code is running properly but I am not able to understand why it is showing failed test cases again and again. I might have done some mistake which I am not able to understand, please tell me what is the mistake in this.
Pattern number & star - 1 question
hi @Vansh1410
you have not print spaces after numbers and stars
after that your code will pass testcases
also put one condition that
if(n==1)cout<<1<<endl;
else{
your code
}
i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course