COMPARTE ESTE ARTÍCULO

Por aquí dejo cómo hacer condicionales en C++. El código es el siguiente:

#include <iostream>

int main(){
    int edad=38;

    

    if(edad<18){
        printf("No estamos interesados");
    }else if(edad<30){
        printf("Contratamos");
    }else if(edad<40){
        printf("No contratamos");
    }else if(edad>50){
        printf("Contratamos");
    }else{
        printf("Contrato eventual");
    }

}




NUESTRAS ÚLTIMAS PUBLICACIONES


Contenido restringido

Acceso de usuarios existentes
   
Registro de un nuevo usuario
*Campo necesario

Tags:

Comments are closed

Estado de acceso
ESTADO DE ACCESO
TRADUCTORES
COMPARTENOS
Insert math as
Block
Inline
Additional settings
Formula color
Text color
#333333
Type math using LaTeX
Preview
\({}\)
Nothing to preview
Insert
error: CONTENIDO PROTEGIDO