Computer Science, asked by varun4322, 1 year ago

C program for closet to zero in five numbers using array's

Answers

Answered by zoekar26
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