Skip to content

Minimization of while loop in Armstrong Numbers #9968

Closed
@lohith-lalam

Description

Feature description

We can use math.log() to find the number of digits in a number instead of while loop.

c = log(n) + 1

Metadata

Assignees

No one assigned

    Labels

    enhancementThis PR modified some existing files

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions