Sum & Count of Even Odd Separately in Array
Task: Sum & Count of Even Odd Separately in Array // Write a C++ program to input 10 numbers // in array then display sum and count of even // and odd numbers in Array, separately. // Author: www.EasyCodeBook.com (c) #include<iostream> using namespace std; int main() { int arr[10],i,esum,osum,ecount,ocount; for(i=0;i<10;i++) { cout<<“Enter Number “<<(i+1)<<” :”;… Read More »