Skip to content

Commit 658ff63

Browse files
authored
Merge pull request #24 from Mrunal-13/inputadded_RemoveElements
Input method added
2 parents f3e32e4 + 3ae5997 commit 658ff63

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Arrays-Implementation/RemoveElements/main.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ void removeElements(vector<int>&v, int num) {
1616
int main() {
1717
vector<int>vect;
1818
int ele, num;
19+
int l;
20+
cout<<"enter the length of array"<<endl;
21+
cin>>l;
1922
cout<<"Enter elements: "<<endl;
20-
for(int i = 0; i < 10; i++) {
23+
for(int i = 0; i < l; i++) {
2124
cin>>ele;
2225
vect.push_back(ele);
2326
}
75.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)