Skip to content

Generic Root of a number #2533

@kushsharma1001

Description

@kushsharma1001

Problem Statement: Find the generic root of a number. The generic root of a number is the sum of all the digits of the number until we get a single-digit output.

Input: 1234
Output: 1
Explanation: 1+2+3+4=10, 1+0 = 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions