Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int smallestArray(int a[], int n)
- {
- int i;
- int smallest;
- int temp;
- int current = a[1];
- for(i = 0; i < 10; i++)
- {
- temp = a[i];
- if (current < temp)
- {
- temp = current;
- }
- }
- smallest = temp;
- return smallest;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement