Creating Loops

  • Uploaded by: SRINIVASA RAO GANTA
  • 0
  • 0
  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Creating Loops as PDF for free.

More details

  • Words: 78
  • Pages: 3
Record 2: 2. Creating Loops Binary Search var a:Array=[20,10,5,55,6]; var n=a.length; for(var i=0;i
break; } else if(key rel="nofollow">a[m]) { l=m+1; m=int((l+h)/2); } else { h=m-1; m=int((l+h)/2); } } trace("given key="+key); if(f==1) trace("element found"); else trace("element not found");

Output after sorting: 5 6 10 20 55 given key=55

element found

Related Documents

Creating Loops
May 2020 14
Loops
May 2020 15
Loops
June 2020 13
Ea Loops
November 2019 27
Ch3 Loops
April 2020 11
Indian Loops
October 2019 28

More Documents from ""