c code for beginners
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\ndouble minimumAverage(int* nums, int numsSize) {\n    int i,j,c;\n    double avg;\n    for(i=0;i<numsSize-1;i++)\n    {\n        for(j=i+1;j<numsSize;j++)\n        {\n            if(nums[i]>nums[j])\n            {\n                c=nums[i];\n                nums[i]=nums[j];\n                nums[j]=c;\n            }\n        }\n    }\n    double min=(double)(nums[0]+nums[numsSize-1])/2.0;\n    for(i=0;i<numsSize/2;i++)\n    {\n        avg=(double)(nums[i]+nums[numsSize-i-1])/2.0;\n        if(min>avg)\n        {\n            min=avg;\n        }\n    }\nreturn min;    \n}\n\n```
['C']