#include using namespace std; int findtheMinDiff(int arn[], int n) { sort(arn, arn+n); int diff = INT_MAX; for (int i=0; i> n; int ar[n]; for(int j = 0; j < n; j++){ cin >> ar[j]; } cout << findtheMinDiff(ar,n); return 0; }