Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

leetcode even digits


int findNumbers(int* nums, int numsSize){
        
        int c = 0;
        
        for(int i = 0; i < numsSize; i++){
               
                if(numDigit(nums[i]) % 2 == 0){
                        c++;
                } 
        }

        return c;
}

Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #leetcode #digits
ADD COMMENT
Topic
Name
3+6 =