Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

9.4.1.2. Loop Condition¶


for (int j = len-2;j >= 0;j--){
        carry = (digits[j]+carry)/10 ;
        digits[j] =(digits[j]+carry)%10 ;
}

Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #Loop
ADD COMMENT
Topic
Name
4+1 =