Balanced Paranthesis:why is it giving integer?

Hello @kamya,

In C++, the data type bool has been introduced to hold a boolean value, true or false.
The values true or false have been added as keywords.
The default numeric value of the keyowrd, true is 1 and false is 0.

Thus, when you print true, it prints 1 and for false it print 0.
Similar to variables, as they are mapped to some values.

Solution:
Use that bool value returned by function as condition for conditional statement to print the strings:
“true” or “false”

I have modified your code.
You can check it here:
https://ide.codingblocks.com/s/111440

Hope, this would help.
Give a like, if you are satisfied.