C Saved Program: gifted-life

facebook share

Here's the online compiler accompanied with IDE at your service. This is a saved code by one of our users. Try it out or save your own from the IDE page and don't forget to leave a feedback. You can find that at the bottom of the page.


 # include<stdio.h>
int main()
{
 int a[5]={10,20,40,50,60};
 int min=a[0],i;
 for(i=0;i<min;i++)
  {
	if(a[i]<min)
	{
	  min=a[i];	
	}
  }
 printf("%d",min);
 return 0;
}
Execute

Output

Press the execute button or CTRL + enter to run code.

Inputs