Skip to content

Commit

Permalink
Update LinearSearch.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Archana550 authored Oct 3, 2019
1 parent 7439209 commit ffd7b92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion searching/LinearSearch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit ffd7b92

Please sign in to comment.