Sign InCreate Account

⬆️ Upgrade to Pro

Unlimited AI coding help, code writer, converter & more.

Upgrade Now

Coding Workspace

EditorProjectsPractice QuestionsFlowcharts

AI Assistance

Pseudocode TutorCode GeneratorCode FixerCode Converter
Back to Problems
PreviousNext

You need to sign in to test your code and save your progress on this question.

Problem Description

Sum Digits of a Number

Hard
Algorithms
Loops
Arithmetic

Write a program that takes a positive integer and outputs the sum of its individual digits. For example, if the input is 123, the output should be 6 (1+2+3).

Example Input

123

Example Output

6

Success Rate:

0% (0 passed / 0 attempted)

Code

Unsaved

Test Results

Click "Run Code" to evaluate your code against the tests.

Product

For SchoolsOverviewFeaturesFAQ
PseudoEditor

© 2026 PseudoEditor. All rights reserved.