Merge pull request #312 from Archana550/patch-1

Update LinearSearch.c
This commit is contained in:
Stephen Curry 2019-10-03 11:49:39 +08:00 committed by GitHub
commit 9f7a97a09d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ void main(){
scanf("%d",&n); //Taking input for the size of Array
int a[n];
printf("Enter the contents for an array of size %d:\n", s);
printf("Enter the contents for an array of size %d:\n", n);
for (i = 0; i < n; i++) scanf("%d", &a[i]);// accepts the values of array elements until the loop terminates//
printf("Enter the value to be searched:\n");