Skip to content
CampusEduX

Count Digits and Digit Sum

Easyjavapythonccppjavascript

Given a non-negative integer N, find the number of digits it has and the sum of those digits.

Input Format

A single line containing the integer N.

Output Format

Print two lines: Digits = d Sum = s

Related Problems

  • Check Prime Number
    Easy · java, python, c, cpp, javascript
    Solve Problem
  • Greatest Common Divisor
    Easy · java, python, c, cpp, javascript
    Solve Problem
  • Least Common Multiple
    Easy · java, python, c, cpp, javascript
    Solve Problem

Input (stdin)

Output

Run your code to see output here...