You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// // Write a program to calculate the sum of all even numbers and sum of all odd numbers, which are stored in an array of size 10. Take array values from the user.
// // Header Files
#include <stdio.h>
#include <conio.h>
#define ARRAY_SIZE 10
// // Main Function Start
int main()
{
int nums[ARRAY_SIZE], sumOfEven = 0, sumOfOdd = 0;
printf("\nEnter 10 Numbers to Calculate Sum of Even And Odd => ");