0
Write a program using for loop and function
Write a program to enter the numbers till the user wants and at the end it should display the count of positive, negative and zeros entered.
1 Answer
0
int n ;
cin >>n;
int a[n],countpos=0;
for(int i =0;i<n;i++){
cin a[ÂĄ];
if ai >0 countpos++;
}
print counts....