Commit 636bde1a by matjul

Upload New File

parent 120cd8e2
Showing with 33 additions and 0 deletions
#include <stdio.h>
int main (){
int array[10] ;
int i = 0 ;
printf("Enter the number of elements in array\n");
while(i < 10){
scanf("%i", &array[i]) ;
i++ ;
}
int minValue = array[0] ;
i=1;
while(i < 10){
if(minValue > array[i]){
minValue = array[i] ;
i++ ;
}else {
i++;
}
}
printf("inimum value is: %i", minValue) ;
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment