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.

19th Oct 2016, 1:43 PM
angle aries
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....
19th Oct 2016, 2:03 PM
Pavan Kate
Pavan Kate - avatar