#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的問題要如何解決呢??