Write a C program that adds two very large integers entered by the user on the keyboard. You cannot sum very large integers using standard data types (long int, double, etc.). You have to read the numbers as a string on the keyboard and perform the addition process by adding the mutual numbers one by one, starting from the ones digit as you learned in elementary school. Your program should also work in case the numbers entered by the user have different numbers. The output of your program should be compatible with the sample program outputs below. In the output of the program, the numbers and the total should be written one after the other, in line with the mutual digits as in the addition process.
Write a C program that adds two very large integers entered by the user on the keyboard. You cannot sum very large integers using standard data types (long int, double, etc.). You have to read the numbers as a string on the keyboard and perform the addition process by adding the mutual numbers one by one, starting from the ones digit as you learned in elementary school. Your program should also work in case the numbers entered by the user have different numbers. The output of your program should be compatible with the sample program outputs below. In the output of the program, the numbers and the total should be written one after the other, in line with the mutual digits as in the addition process.
Step by step
Solved in 2 steps with 1 images