SHARE
TWEET

Untitled

a guest Aug 21st, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int temp(int arr[], int n)
  2. {
  3.     int min = arr[0];
  4.     for (int i = 1; i < n; i++)
  5.     {
  6.         if (abs(arr[i]) < abs(min))
  7.             min = arr[i];
  8.     }
  9.  
  10.     return min;
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top