Problem 1: Basic Mathematical Operations

Create a C program that will input N number and create a function that determines the following SUM, AVERAGE, EVEN Numbers ODD Numbers, Prime Numbers and FACTORIAL of the given N integers.

Consider the following sample output.

Enter N numbers: 10

Value of number 1-3

Value of number 2-3

Value of number 3-7

Value of number 4-3

Value of number 5- 2

Value of number 6- 3

Value of number 7- 45

Value of number 8- 4

Value of number 9 - 3

Value of number 10-19

Sum: 92

Average: 9.2

EVEN Numbers: 2, 4

ODD Number: 3,3,7,7,3,45,3,19

PRIME Numbers: 3,3,7,3,2,3,3

Factorial:

Value 1- 3 = 6

Value 2- 3 = 6

.

.

.

Value 10 – 19 = ?

I am stuck at average because i don't know what is next now please meCode:#include<stdio.h> #include<conio.h> int sum (int); float ave (float,float); int even (int); int main() { int count,hold,num,sumall=0; clrscr(); printf("\nEnter N numbers: "); scanf("%d",&hold); for (count=1;count<=hold;count++) { printf("Value of number %d-",count); scanf("%d",&num); sumall=sumall+sum(num); if (count==hold) { printf("\nSum:%d",sumall); printf("\nAverage:%.1f",ave(sumall,hold)); } } getch(); return 0; } int sum (int a) { int sum1; sum1=0; sum1=a+sum1; return (sum1); } float ave (float b, float c) { float ave1; ave1=b/c; return ave1; }