diff --git a/C/Program-52/README.md b/C/Program-52/README.md new file mode 100644 index 00000000..e521142d --- /dev/null +++ b/C/Program-52/README.md @@ -0,0 +1,4 @@ +Program 52 + +Write a program to find whether the given element is present in the array or not. + diff --git a/C/Program-52/program.c b/C/Program-52/program.c new file mode 100644 index 00000000..0d916d88 --- /dev/null +++ b/C/Program-52/program.c @@ -0,0 +1,39 @@ +#include + +int main() { + int n;//number of elements of array; + printf("Enter the number of elements"); + scanf("%d",&n); + int arr[n]; + printf("\nEnter the elements"); + for(int i=0;i