Hello do you have a code for that but if you enter 1 single only number Input : 1 Out put : 1 positive and even number. Like that?
@ziaullahkhan66893 жыл бұрын
Write a c++ Program to create a dynamic array has N = 7 elements. Get integer values into array and then provide the following functionality: a) Sort them in ascending/descending order. b) Print all even numbers available in the array. c) Print all Odd numbers available in the array. d) Print all prime numbers available in the array. e) Print all complete square numbers (e.g. 4, 9, 16, 25 etc.) available in the array. f) Change the size of an array from 7 to 15 dynamically. g) Insert elements on new locations and print all elements.