From d83f10996175dca92b64169cf1ff595eae5ec04e Mon Sep 17 00:00:00 2001 From: Devansh Singh <95035769+Dev12820@users.noreply.github.com> Date: Wed, 5 Oct 2022 12:41:04 +0530 Subject: [PATCH] Create Indexsequentialsearch.java --- .../Java/searching/Indexsequentialsearch.java | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 algorithms/Java/searching/Indexsequentialsearch.java diff --git a/algorithms/Java/searching/Indexsequentialsearch.java b/algorithms/Java/searching/Indexsequentialsearch.java new file mode 100644 index 00000000..924e3607 --- /dev/null +++ b/algorithms/Java/searching/Indexsequentialsearch.java @@ -0,0 +1,57 @@ +import java.util.*; +public class Indexsequential { + public static void main(String[] args) { + int n,c; + Scanner sc=new Scanner(System.in); + n=sc.nextInt(); + int ar[]=new int[n]; + for(int i=0;i