Questions based on array

1. Calculate the sum of the elements of a given array.

2. Find the largest and smallest element of a given array.

 

3. Find the no. of even numbers and odd numbers in a given array.

3.a Find the sum of the even numbers and odd numbers seperately of that array.

4. Search a given no. in a given array and also find the frequency of a that no. in that array.

5. Print an array which is the reverse of a given array.

Hackerrank question ->Plus Minus

Hackerrank question-> Staircase

Float array

We can use float array if necessary like this

float a[5]

Made with Slides.com