Program to print open and close brackets [on hold]
if n=1 output {}
if n=2 print {}{},{{}}
if n=3 print {}{}{},{}{{}},{{}}{},{{}{}}{{{}}}
using any coding language.
I need a program to print the open and close bracket based on the given
input n. n is an integer. open bracket should not come after close
bracket.
No comments:
Post a Comment