Write a C Program to find the Least from a set of numbers





Write a C Program to find the Least of the set of numbers,Array, Sumit Kar


#include<stdio.h>


void 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("Least value of Array: %d",min);



}













0 Comments