Question: Q.3 Harry Potter invented an addition method that works digit by digit and is done by taking the larger (3) of the two digits. For

 Q.3 Harry Potter invented an addition method that works digit by

Q.3 Harry Potter invented an addition method that works digit by digit and is done by taking the larger (3) of the two digits. For example, 1 + 3 is equal 3 and 7 + 4 is equal to 7. Thus, 3 5 7 + 6 4 I 3 67 i.e., The addition of 357 and 64 is 367. There are no carries. Write a C program that outputs this addition for the given two numbers as input. Note: Input numbers may have a different number of digits in them

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!