C program for closet to zero in five numbers using array's
Answers
Answered by
0
Answer:
Assuming the array is integer
Explanation:
#include <stdio.h>
#include <stdlib.h>
main(){
int mat[5], i, min;
for(i=0;i<5; i++){
printf("Give a number: ");
scanf("%d", &mat[i]);
}
min = mat[1];
for(i=0;i<5; i++){
if(min>mat[i])
min= mat[i];
}
system("pause");
}
Similar questions
Computer Science,
7 months ago
Math,
7 months ago
Geography,
7 months ago
Political Science,
1 year ago
World Languages,
1 year ago
Social Sciences,
1 year ago