©️IF ... ELSE
Condiciones y Sentencias IF
La Declaracion If (si)
if (condicion) {
//codigo a ejecutar
}if (20 > 18) {
printf("20 es mayor a 18");
}#include <stdio.h>
int main() {
int x = 10;
int y = 5;
if (x > y) {
printf("Es mayor X");
}
return 0;
}La declaracion Else (mas)
La sentencia Else If
If Else
Última actualización