Generation

generate functionThu, 27 Apr 2023

crea un progama para introducir un numero y verificar si se encuentra entre el 10 y 20 con sentencia if

#include <iostream> using namespace std; int main() { int numero; cout<<"Ingrese un numero: "; cin>>numero; if(numero>=10 && numero<=20){ cout<<"El numero esta entre 10 y 20"; }else{ cout<<"El numero no esta entre 10 y 20"; } return 0; }

Questions about programming?Chat with your personal AI assistant