1
121
12321
1234321
what would be the pseudo code for this pattern ?
Pattern pseudo code
@Raghavsingla522 hey here is pseudo code for pattern ,try it.
for(i=1; i<=Now of rows; i++)
{
// Prints the first part of the pattern
for(j=1; j<=i; j++)
{
print j
}
// Prints the second part of the pattern
for(j=i-1; j>=1; j--)
{
Print j
}
printf("\n");
}
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.