#2852: 請高手進來幫忙


thomasxp (飛翔)


#include<iostream>
#include<cmath>
#include <cstdlib>
#include <cstring>
using namespace std;
int main()
{
    int a;
    while(cin>>a)
  {
    a=a/abs(a);
    cout<<a<<endl;
  }
  system("pause");
}

除以0的問題要如何解決呢??