mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
Update LinearSearch.c
This commit is contained in:
parent
326cf62a0f
commit
13afc89b50
@ -16,7 +16,7 @@ void main(){
|
||||
|
||||
int a[s];
|
||||
printf("Enter the contents for an array of size %d:\n", s);
|
||||
for (i = 0; i < s; i++) scanf("%d", &a[i]);
|
||||
for (i = 0; i < s; i++) scanf("%d", &a[i]);// accepts the values of array elements until the loop terminates//
|
||||
|
||||
printf("Enter the value to be searched:\n");
|
||||
scanf("%d", &v);
|
||||
|
Loading…
Reference in New Issue
Block a user