Minimum value of Array

Minimum value of Array

Welcome to the World of Online Learning:

Hello Friends “This blog helps you to learn C programming concepts. You can learn C language at your own speed and time. One can learn concepts of C language by practicing various programs given on various pages of this blog. Enjoy the power of Self-learning using the Internet.”

Minimum value of Array
Minimum value of Array

Write a C program to Minimum value of Array

PROGRAM: Minimum value of Array

/* Minimum value of Array */
 
#include<stdio.h>

int main()
{
 int arr[10],i,min=0;
 printf("Please enter 10 values:\n");
 for(i=0;i<10;i++)
  scanf("%d",&arr[i]);
 
 min=arr[0];
 for(i=1;i<10;i++)
 {
  if(min>arr[i])
   min=arr[i];
 }
 
 printf("Minimum value of Array: %d",min);
 return 0;
}

Leave a Reply

Your email address will not be published. Required fields are marked *