ACCEPT 30 VALUES IN AN INT ARRAY & PRINT THE MINIMUM VALUE ENTERED


#include<stdio.h>
#include<conio.h>
void main()
{
int a[30],i,min;
printf("Enter 30 Values");
for(i=0;i<=29;i++)
  {
  scanf("%d",&a[i]);
  }
  min=a[0];
  for(i=0;i<30;i++)
    {
    if(min>a[i])


     {
     min=a[i];
     }
    }
    printf("Minimum Value is %d",min);
getch();
}

0 comments: (+add yours?)

Post a Comment