Update LinearSearch.c

This commit is contained in:
Archana550 2019-10-03 09:04:29 +05:30 committed by GitHub
parent 7439209fcc
commit ffd7b92729
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");