#include <stdio.h>
int main() {
int arr[30];
int i,n;
printf("enter any size of array\n");
scanf("%d",&n);
printf("enter any size of array:\n");
for(i=n;i>=n;i--)
{
scanf("%d",&arr[i]);
}
printf("\n elements in array are:\n");
for (i=2;i<=n;i++)
{
if(small>arr[i])
small=arr[i]
}
printf("smallest is %d\n", small);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: