Cplab 5 Up
Cplab 5 Up
Objective(s):
1. To be able to apply Arrays in C++
2. To be able to use of One Dimension Array
Exercises
Exercise 1
Sample Outputs:
Exercise 2
Write a C++ program to search an element entered by user from array and display the searched
element and its location.
Sample Inputs:
Sample Output:
Sample Inputs:
Sample Output:
Exercise 3
Write a C++ program to find total number of elements in an array and print number of elements
repeated in an array also print all unique elements in an array.
Exercise 4
Write a program in C++ to identify array in which no zero present, and print those numbers. If
user input a value without zero program should terminate.
Exercise 5
Write a C++ program that asks user to enter 10 integer values. Store those values in one
dimensional array. Create another one dimensional array of same size, and store the values of
first array in reverse order. Print the result on Screen.
Output: