Commit 2ed4b1e4 by emonyi

Upload New File

parent 454704f3
Showing with 35 additions and 0 deletions
#include <stdio.h>
int main () {
int numberArray[10];
int i;
i=0;
while(i<10){
scanf("%i", &numberArray[i]);
i++;
}
int minValue;
minValue=numberArray[0];
i=1;
while (i<10){
if (numberArray[i]<minValue) {
minValue=numberArray[i];
i++;
}else{
i++;
}
}
printf ("The min 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