Skip to main content

Problem Statement

Write a C program that takes an integer as input and finds the sum of its digits using a while loop.

Solution

Input

Output