diff --git a/binarysearch.java b/binarysearch.java new file mode 100644 index 0000000..cc38565 --- /dev/null +++ b/binarysearch.java @@ -0,0 +1,63 @@ +import java.util.Scanner; +public class Main +{ + public static void main(String[] args) + { + Scanner scanner=new Scanner(System.in); + System.out.println("enter number of elements"); + int size = scanner.nextInt(); + System.out.println("enter number in sorted order"); + int sortArr[]= new int[size]; + int i; + for(i=0;i