//find-smallest-number-in-array-using
#include <stdio.h>
#include<math.h>
void main(){
int arr[10],*f,*g,*k,t;
printf("ENTER ARRAY =\n");
for(int i=0;i<10;i++){
scanf("%d",&arr[i]);
}
// scanf("%d",&arr[0]);
printf("ARRAY =\n");
for(int i=0;i<10;i++){
printf(" %d\n",arr[i]);
}
for(int i=0;i<10;i++){
for(int j=i+1;j<10;j++){
f=&arr[i];
g=&arr[j];
if(*f<*g){
;
}
else{
t=*f;
*f=*g;
*g=t;
}
}
}
k=&arr[0];
printf("SMALLEST NUMBER =%d\n",*k);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: