Read n numbers. Count the number of negative numbers, positive numbers and zeroes in the list. Use arrays.
#include <iostream>
int main() {
// Declare variables
int n;
// Input the number of elements
std::cout << "Enter the number of elements: ";
std::cin >> n;
// Declare an array to store the numbers
int numbers[n];
// Input the numbers
std::cout << "Enter " << n << " numbers:\n";
for (int i = 0; i < n; ++i) {
_________ ______ __________ ________ _____ ________ _______ ___.
____ ________ ___ ___ ________ _______.
_______ ____ _______ ___ ______ ___ ______ ______ _________ _________.
________ ____ ____ ___ ____ _________ _______ ___ ___.
______ ___ ____ ___ _______ _________.
___ _________ ________ ______ _____ ____ ___ ___ _________ _____.
____ ____ _______ ________ _____ ____.
______ __________ _________ _________ _____ _________ _______ ____ _____ _____ ____.
___ _______ __________ ________ ____.
___ ____ ________ _________ ____ _____ ___ _______.
___ _____ _____ _________ ________.
_______ ______ ________ _____ _________ ___ __________ _____ ___.
___ ______ ____ _________ ______ ________ _______ ____ ________.
_____ ______ __________ _____ ____ _______.
_____ ________ _________ _________ __________ _____.
___ ____ ________ ___ __________ ________ __________ _________ __________ _________ __________ __________.
_______ __________ __________ _______ __________ ________ __________ ____ __________ ___ _____.
____ _______ ___ _________ _____ ______ _________ _________ _________ ______.
______ ________ ____ _____ ________ ___ _______ _______ ____ _______ ________.
__________ ______ _____ _________ ______ __________ ___ __________ _______.
___ ________ _____ _____ ___ ____ _________ _______.
____ ____ ____ _________ _____ _________ __________ ____.
________ _____ ___ _________ ___.
____ ___ __________ ___ ______ ___.
_________ ____ _____ ______ __________ __________.
___ _____ ___ ___ _______ ___ ___ _____.
____ ______ _________ _____ ________ ________.
______ _____ ____ __________ _________ ________ _________ __________ _______ _______ ___ __________.
_______ ____ ___ ____ __________ _____ ______ _____ _____ ________ ______.
______ ____ _____ ___ ___.
________ _____ _____ __________ _______ _______ __________ _______.
_______ _______ ______ __________ ______.
________ ______ ________ ____ ________ __________ ________ _____ _______ _______ __________ ________.
________ ______ ______ ____ _________ ____ _________ ________ __________ _______.
___ __________ _____ ___ ____ _______ ___ ______ _________ ________ _____.
_________ ______ ________ ____ _____.
________ _______ ___ _____ ____ ________ _______ ___ ________ ___ _____.
_______ _________ ________ _________ ____ __________ ______ _____.
____ ___ _________ __________ ____ ________ _____ __________.
___ __________ _____ _______ ________ ____ ______.
_________ _____ ____ _____ _____ _________ __________ ______.
______ __________ ________ ______ ___ _________.
_____ ___ _________ __________ ______.
________ _____ __________ _____ _________ ________ ________.
__________ _________ __________ ________ _____ _____.
____ ___ ______ __________ _________ ______ ______ ______ _____ _____ ______ ___.
Get Full Answer on WhatsApp