//14. Lee un número e indica si está en el rango [10, 50].
#include <iostream>
using namespace std;
int main() {
// Write C++ code here
std::cout << "PROGRAMA QUE INDICA SI UN NUMERO ESTA EN UN RANGO DE 10-50"<<endl;
int num;
cout<<"ingrese un numero "<<endl;
cin>>num;
if((num>=10)&&(num<=50))
{
cout<<"EL NUMERO ESTA EN EL RANGO 10-50 "<<endl;
}else
{
cout<<"EL NUMERO NO ESTA EN EL RANGO "<<endl;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: