Hey guys,i am very very new to c programming and i really need your guys help,please.Below is the code that i use array to collect 5 integer and determine the minimum integer from the 5 integer using c language.
#include<stdio.h>
int main()
{
int i,min;
int number [5];
for(i=0;i<5;i++)
{
printf("enter number:");
scanf("%d",&number[i]);
}
for(i=0;i<5;i++)
{
if(number[i]<min)
{
min=number[i];
}
}
printf("the minimum value is %d",min);
}
AND HERE'S THE QUESTION
use functions to(c language) :
i.Get the 5 integers from user (Function : user_input)
ii.Find the smallest number (Function: find_smallest)
iii.Display the smallest number (Function: Main)
i kinda don't know how to start.