Curly brackets | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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

18th May 2018, 1:27 AM
Guillaume Boulay
Guillaume Boulay - avatar
1 Antwort
+ 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.
18th May 2018, 8:19 PM
Arc
Arc - avatar