C program to find maximum and minimum element in array

Write a C program to input elements in an array from user, find maximum and minimum element in array. C program to find biggest and smallest elements in an array. Logic to find maximum and minimum element in array in C programming.

Example

Input

Input array elements: 10, 50, 12, 16, 2

Output

Maximum = 50
Minimum = 2

Read more

C program to find sum of array elements

Write a C program to read elements in an array and find the sum of array elements. C program to find sum of elements of the array. How to add elements of an array using for loop in C programming. Logic to find sum of array elements in C programming.

Example

Input

Input elements: 10, 20, 30, 40, 50

Output

Sum of all elements = 150

Read more

C program to declare, initialize, input and print array elements

Write a C program to declare, initialize, input elements in array and print array. How to input and display elements in an array using for loop in C programming. C program to input and print array elements using loop.

Example

Input

Input size: 10
Input elements: 1
2
3
4
5
6
7
8
9
10

Output

Output: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

Read more