Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

hello fellow programmers I am here to seek your help about this

hurtmemorehurtmemore Posts: 2Member
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
Sign In or Register to comment.