Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a, cons, pros, zeros, n = 0;
- cin >> a;
- for (int i = 0; i < a + 1; i++;){
- cin >> n;
- if (n == 0){
- zeros++;
- }
- else if (n < 0){
- cons++;
- }
- else{
- pros++
- };
- cout << pros << " " << cons << " " << zeros;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement