Created
March 21, 2017 18:21
-
-
Save ninpl/77198fef45c30f77717f761cb6d6b260 to your computer and use it in GitHub Desktop.
Estructura de condicion simple
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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