00:01
Hello student here modify decimal addition algorithm of the figure 1 .2 so that it doesn't print out the non -significant leading zero.
00:09
So for example zero can't put at the starting of the given number.
00:14
So here algorithm i have taken the name is decimal addition without leading zeros.
00:18
So here input will be the 2 m digit number representing as a string number 1 and number 2 and output will be the sum of these number 1 and number 2 represent a string because the input data is also the string type.
00:29
So here the step 1 is similar to the given initialize the two variable carry and i which is set to the zero step 2 set i to the zero now step 3 while i is less than or equal to m minus 1.
00:42
So here i have added some statement add the digit at the index i of number 1 and the digit at the index i of number 2 because i will be added with the i of the second one.
00:56
So to carry if the sum is greater than or equal to 10 subtract 10 from the sum and set carry to 1 in this case otherwise set carry to 0.
01:06
So special attention is given to the carry because it is given if carry is greater than 10 then we have to subtract 10 from this and reset the value of the carry to 1 otherwise it will be 0 if it is less than 10.
01:21
So append the digit at the index i of the sum to the result string increment in the i...