diff --git a/minimum-element b/minimum-element new file mode 100644 index 0000000..467d866 --- /dev/null +++ b/minimum-element @@ -0,0 +1,30 @@ +#include +using namespace std; + +int main() +{ + int n,i,m , min ; + int *a = new int[n]; + cout<<"Enter the size of array: "; + cin>>n; + cout<<"Enter "<>a[i]; + } + + cout<<"Elements are: "; + for(i=0; ia[i]) + min=a[i]; + } + cout<<"\nMinimum element is: "< +using namespace std; +int main() +{ + int n,i,m,count=0; + cout<<"Enter the size of an array : "; + cin>>m; + int arr[m]; + cout<<"Enter the elements of array : "; + for(i=0; i>arr[i]; + } + cout<<"Enter the element to be check : "; + cin>>n; + for(i=0; i