Generate paranthesis


what is causing the problem
i have even tried using the strings but still is giving error

here is your corrected code:


if this solves your doubt please mark it as resolved :slight_smile:

but what was the problem with char array

and with for each loop