roberts
GF Ouro
- Entrou
- Set 23, 2007
- Mensagens
- 8,173
- Gostos Recebidos
- 0
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
float x;
cout<<"numero"<<endl<<endl;
cout<<"Introduza o numero: ";
cin>>x;
if(x>0)
cout<<"Positivo"<<endl<<endl;
else if(x<0)
cout<<"Negativo"<<endl<<endl;
if (x==0)
cout<<"neutro"<<endl<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
#include <iostream>
using namespace std;
int main()
{
float x;
cout<<"numero"<<endl<<endl;
cout<<"Introduza o numero: ";
cin>>x;
if(x>0)
cout<<"Positivo"<<endl<<endl;
else if(x<0)
cout<<"Negativo"<<endl<<endl;
if (x==0)
cout<<"neutro"<<endl<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}