
#include <stdio.h>
#include <limits.h>

int main(void) {
	int nums[4]={100, 200, 300, 50}; //we declare an array
	int n = sizeof(nums)/sizeof(nums[0]); // we check the lenght of the array
	int min = INT_MAX; // we start that the min int is the maximum one

	// walk the array
	for (int i=0;i<n;i++){
		// compare if num is smaller then int. this is why min is the max value.
		if (nums[i]<min){
			min=nums[i];
		}

	}

	printf("%d",min);
	return 0;
}
