Ex: Write a C program to print all negative elements in array. How to write a C program which print all negative elements in array. C program to print all negative elements in array.
Input from user:
Enter the limit: 5
Enter the numbers:
10
-3
12
-9
-2
Expected output:
Negative elements are:
-3
-9
-2
Input from user:
Enter the limit: 5
Enter the numbers:
10
-3
12
-9
-2
Expected output:
Negative elements are:
-3
-9
-2