1.

Take 10 integer inputs from user and store them in an array and print them on screen.

2.

Take 10 integer inputs from user and store them in an array. Again ask user to give a number. Now, tell user whether that number is present in array or not.

( Iterate over array using while loop ).

( Iterate over array using while loop ).

3.

Take 20 integer inputs from user and print the following:

number of positive numbers

number of negative numbers

number of odd numbers

number of even numbers

number of 0s.

number of positive numbers

number of negative numbers

number of odd numbers

number of even numbers

number of 0s.

4.

Take 10 integer inputs from user and store them in an array. Now, copy all the elements in another array but in reverse order.

5.

Write a program to find the sum of all elements of an array.

6.

Write a program to find the product of all elements of an array.

7.

Initialize and print each element in new line of a array inside array.

8.

Find the largest and smallest elements of an array.

9.

Write a program to print sum, average of all numbers, smallest and largest element of an array.

10.

Write a program to check if elements of a array are same or not it read from front or back. E.g.-

2 | 3 | 15 | 15 | 3 | 2 |

11.

Make a array by taking 10 input from user. Now delete all repeated elements of the array.

E.g.-

INPUT : [1,2,3,2,1,3,12,12,32]

OUTPUT : [1,2,3,12,32]

E.g.-

INPUT : [1,2,3,2,1,3,12,12,32]

OUTPUT : [1,2,3,12,32]

12.

Take an array of 10 elements. Split it into middle and store the elements in two dfferent arrays. E.g.-

INITIAL array :

After spliting :

INITIAL array :

58 | 24 | 13 | 15 | 63 | 9 | 8 | 81 | 1 | 78 |

After spliting :

58 | 24 | 13 | 15 | 63 |

9 | 8 | 81 | 1 | 78 |

13.

Ask user to give integer inputs to make a array. Store only even values given and print the array.

1.

Take a slit of length n where all the numbers are non-negative and unique. Find the element in the array possessing the highest value. Split the element into two parts where first part contains the next highest value in the array and second
part hold the required additive entity to get the highest value. Print the array where the highest value get splitted into those two parts.

Sample input: 4 8 6 3 2

Sample output: 4 6 2 6 3 2

Sample input: 4 8 6 3 2

Sample output: 4 6 2 6 3 2

2.

Write a program to shift every element of an array to circularly right. E.g.-

INPUT : 1 2 3 4 5

OUTPUT : 5 1 2 3 4

INPUT : 1 2 3 4 5

OUTPUT : 5 1 2 3 4