Assignment #3

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Assignment#3 Due Date: 12-1-2018

Q#1
Write a C++ program to merge two sorted array using functions. Your output
should be like this:

Input

Input first array elements: 1, 4, 6, 9, 15


Input second array elements: 2, 5, 8, 10

Output

Merged array in ascending order = 1, 2, 4, 5, 6, 8, 9, 10, 15

Q#2
Write a C++ Program to find maximum and minimum element in array. Your
output should be like this:

Enter size of the array: 10

Enter elements in the array: -10 10 0 20 -2 50 100 20 -1 10

Maximum element = 100

Minimum element = -10

You might also like