Write a program that reads a sequence of words with curly brackets and parentheses, and for each one prints if the curly brackets and the parentheses close correctly.
Input is a sequence of words consisting of |’[’|, |’]’|, |’(’| and |’)’|.
For each word, print “yes” or “no”
depending on if the curly brackets and the parentheses close correctly
or not.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T12:11:24.189Z
© Jutge.org, 2006–2026.
https://jutge.org