mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-26 23:39:35 +03:00
commit
9f7a97a09d
@ -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