Update dynamic_programming/searching_of_element_in_dynamic_array.cpp

Co-Authored-By: Christian Clauss <cclauss@me.com>
This commit is contained in:
Faizan Ahamed 2020-04-22 11:02:19 +05:30 committed by GitHub
parent 6d1b9da209
commit 6a3c002977
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,10 +68,12 @@ int main() {
// ***
for (z = 0; z < q; z++) {
int64_t r1 = 0, q1 = 0;
std::cout << "enter the number of row which element You want to find :";
std::cout << "enter the number of row which element you want to \
find :";
std::cin >> r1;
r1 = r1 - 1;
std::cout << "enter the position of element which You want to find :";
std::cout << "enter the position of element which you want to \
find :";
std::cin >> q1;
q1 = q1 - 1;
// use this to find desire position of element in desire array