Computer Science, asked by jefrin03, 4 months ago

develop a c program to find smallest element in an array​

Answers

Answered by vimalkumarvishawkarm
1

Answer:

1): #include<stdio.h>

2): int main() {

3): int a[30], i, num, smallest;

4): printf("\nEnter no of elements :");

5): scanf("%d", &num);

6): //Read n elements in an array.

7): for (i = 0; i < num; i++)

8): scanf("%d", &a[i]);

Similar questions