Curly brackets | Sololearn: Learn to code for FREE!

0

Curly brackets

Hello World! In this example (shown below), we are closing the curly brackets and reopening the because if and else are 2 different statements right? To be sure here! Thank you

5/18/2018 1:27:04 AM

Guillaume Boulay

1 Answer

New Answer

+1

The curly brackets are to show, which istructions belong to which statement. So everything the program should do if something is true is in the brackets after "if". Same with else.