diff --git a/LinearSearch.java b/LinearSearch.java new file mode 100644 index 0000000..58ae653 --- /dev/null +++ b/LinearSearch.java @@ -0,0 +1,28 @@ +package Array; + +import java.util.Scanner; + +public class LinearSearch { + + public static void main(String[] args) { + try(Scanner sc = new Scanner(System.in)){; + int n = sc.nextInt(); + int arr[]= new int[n]; + for(int i = 0; i