πŸ’©

programierds

if / step by step

<code>if</code> conditional, line by line

You see at each step the active line, the variable value, and why it enters (or not) the block.

1) CodeActive line: 1
1int edad = 18;
2if (edad >= 18) {
3  printf("Puede votar\n");
4}
5printf("Fin del ejemplo\n");
Step 1: Creates variable <code>edad</code> with value 18.
Step 1 / 5
2) Variables
edad18
Condicion edad >= 18-
3) Simulated console
./if-demostdout