Skip to content

Instantly share code, notes, and snippets.

@ninpl
Created March 21, 2017 18:21
Show Gist options
  • Select an option

  • Save ninpl/77198fef45c30f77717f761cb6d6b260 to your computer and use it in GitHub Desktop.

Select an option

Save ninpl/77198fef45c30f77717f761cb6d6b260 to your computer and use it in GitHub Desktop.
Estructura de condicion simple
// Practica para refrescar la sintaxis de C++
#include <iostream>
using namespace std;
int main()
{
/* ESTRUCTURA CONDICIONAL SIMPLE
if -> si
else -> sino */
if(5<5)
{
cout<<"Entro al if"<<endl;
}
else
{
cout<<"No se cumple el if"<<endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment