From 2df272163b79131fad69771b1aa0a6ec0290a172 Mon Sep 17 00:00:00 2001 From: Riya Ranka <81897389+RiyaRanka@users.noreply.github.com> Date: Tue, 30 May 2023 23:30:37 +0530 Subject: [PATCH] Create deleteElementsInArray.cpp --- .../Arrays/deleteElementsInArray.cpp | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 algorithms/CPlusPlus/Arrays/deleteElementsInArray.cpp diff --git a/algorithms/CPlusPlus/Arrays/deleteElementsInArray.cpp b/algorithms/CPlusPlus/Arrays/deleteElementsInArray.cpp new file mode 100644 index 00000000..d4e7a93b --- /dev/null +++ b/algorithms/CPlusPlus/Arrays/deleteElementsInArray.cpp @@ -0,0 +1,42 @@ +#include +using namespace std; +int main() { + int size, arr[100], i; + cout << "Enter size of array: "; + cin >> size; + for (i=0; i> arr[i]; + } + cout << endl; + + cout << "Your array is "; + for (i=0; i> deleteNum; + for (i=0; i