The meaning of the question is unclear.
put then in order from smallest to largest (or large to small) and find the number directly in the middle
#include<stdio.h> void main() { int a[10],n,i,large,small; printf("enter the value of n\n"); scanf("%d",&n); printf("enter the elements\n"); for(i=0;i<n;i++) scanf("%d",&a[i]); large=a[0]; small=a[0]; for(i=1;i<n;i++) { if(a[i]>large) large=a[i]; if(a[i]<small); small=a[i];} printf("largest element in the array id %d\n",large); printf("smallest element in the array is %d\n",small); }
It depends what you are talking about a 40 cm elephant is small but a 40 cm fly is large
Implement these methods: public static int smallest(int[] arr) { int small = arr[0]; for(int i = 1; i < arr.size(); i++) if(arr[i] < small) small = arr[i]; return small; } public static int largest(int[] arr) { int large = arr[0]; for(int i = 1; i < arr.size(); i++) if(arr[i] > large) large = arr[i]; return large; }
All you do is find the largest and smallest number in the data. Then you subtract the small number from the big number.
Minuscule. - Titan would be considered amongst the largest of the large, so its opposite would have to be amongst the smallest of the small.
No. The earthquake that struck Haiti in 2010 was a 7.0, which is a very large earthquake, though by no means the largest. The smallest earthquakes are too small to even be felt.
larger than the smallest
By far, the largest organs in the digestive system are the small and large intestines. The small intestines is bigger (longer) though. The smallest organ or muscle is the tongue! The smallest item involved in mechanical digestion is the teeth!
Generic camera boxes can vary in size depending on where or what one buys. They come as small as the smallest camera and as large as the largest commercial camera available.
Listed from smallest lizard food for small lizards to largest lizard food for very large lizards: fruit flies, flies, small crickets, crickets, large crickets, grasshoppers, baby mice, mice, small rats, rats, large rats.
Neither. There are about 14 million Jews in the world, which is small, but not the smallest.