#include<iostream> using namespace std; int main() { int a,x=0,y=0; for(int i=0;i<10;i++) { cin>>a; if(a>0)x++; else if(a<0)y++; } cout<<"positive:"<<x<<endl; cout<<"negative:"<<y<<endl; }
#include<iostream> using namespace std; int main() { int a,x=0,y=0; for(int i=0;i<10;i++) { cin>>a; if(a>0)x++; else if(a<0)y++; } cout<<"positive:"<<x<<endl; cout<<"negative:"<<y<<endl; }