SIMPLE C PROGRAM
IntuitionApproachComplexity
Time complexity:0 MS

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:0 MS
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```c []
int sumdig(int n)
{
    int sum=0;
    while(n!=0)
    {
        sum=sum+(n%10);
        n=n/10;
    }
    return sum;
}
int minElement(int* nums, int numsSize) {
    int temp;
    for(int i=0;i<numsSize;i++)
    {
        temp=sumdig(nums[i]);
        nums[i]=temp;
    } 
    int min=nums[0];
    for(int j=0;j<numsSize;j++)
    {
        if(nums[j]<min)
        {
            min=nums[j];
        }
    }
    return min;
}
```
['C']