Loops – Arithmetic – Problem #19
IIT Kharagpur CS10001 / CS11001 Programming and Data Structures Lab Question Archive
Difficulty: Easy
Problem Statement
Write a C program which reads an integer n and then prints the sum of digits of n. For example, if n is 2020 it should print 4.