+ 1

How does this code works

How it showed Not Found ? How it showed Both Found ? How it showed 50 Found ? How it showed 100 Found ? https://code.sololearn.com/WLAp13QWrpPK/?ref=app

21st Jun 2019, 7:13 PM
Zainab Idrees
Zainab Idrees - avatar
1 Answer
0
it's simple first we decleare array and elements. then assign variable named display and assign string Not Found to that variable. then by the use of for loop we go through the array elements using condition of array indec is less than array Length value.. nd perform a if condition if already variable display have value of Not found then it change it to Value found else it display both
21st Jun 2019, 7:25 PM
imtiaz Ahmad
imtiaz Ahmad - avatar