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
- Host: GitHub
- URL: https://github.com/rishit-dagli/armstrong-numbers-rust
- Owner: Rishit-dagli
- Created: 2019-12-04T11:41:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-01T15:18:10.000Z (over 5 years ago)
- Last Synced: 2025-02-10T01:44:24.833Z (8 months ago)
- Language: Jupyter Notebook
- Size: 5.86 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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