An open API service indexing awesome lists of open source software.

https://github.com/rishit-dagli/armstrong-numbers-rust

This repository demostartes the use of Rust to check if a nuber is an armstrong number
https://github.com/rishit-dagli/armstrong-numbers-rust

Last synced: 6 months ago
JSON representation

This repository demostartes the use of Rust to check if a nuber is an armstrong number

Awesome Lists containing this project

README

          

# Armstrong numbers Rust
This repository demostartes the use of Rust to check if a nuber is an armstrong number


9 is an Armstrong number, because 9 = 9^1 = 9

10 is not an Armstrong number, because 10 != 1^2 + 0^2 = 1

153 is an Armstrong number, because: 153 = 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153

154 is not an Armstrong number, because: 154 != 1^3 + 5^3 + 4^3 = 1 + 125 + 64