C Exercises: Count the number of digits of the sum value of two integer values
Sum two integers and count digits in the result
Write a C program to calculate the sum of two given integers and count the number of digits in the sum value.
Sample Solution:
C Code:
Sample Output:
Input two integer values: 68 75 Number of digits of the sum value of the said numbers: 3
Flowchart:

For more Practice: Solve these Related Problems:
- Write a C program to sum two integers and then determine the number of digits in the result using a loop.
- Write a C program to calculate the sum of two numbers and count digits by converting the result to a string.
- Write a C program to compute the sum and use a recursive function to count the digits of the resulting number.
- Write a C program to add two numbers and iteratively divide the sum by 10 to count its digits.
C programming Code Editor:
Previous: Write a Java program to find heights of the top three building in descending order from eight given buildings.
Next: Write a C program to check whether three given lengths (integers) of three sides of a triangle form a right triangle or not. Print "Yes" if the given sides form a right triangle otherwise print "No".
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.