mirror of
https://github.com/TheAlgorithms/C
synced 2025-02-16 21:44:16 +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
|
scanf("%d",&n); //Taking input for the size of Array
|
||||||
|
|
||||||
int a[n];
|
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//
|
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");
|
printf("Enter the value to be searched:\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user