Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(void){
- int numero;
- cout<< "Ingrese un numero: " ;
- cin>> numero;
- if(numero>0){
- cout<<"Es positivo";
- }
- else
- if(numero<0){
- cout<<"es negativo";
- }
- else{
- cout<<"es cero";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment