mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-22 05:21:49 +03:00
Update LinearSearch.c
This commit is contained in:
parent
7439209fcc
commit
ffd7b92729
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user