cloud971/hw1-cha
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The following Project calculates the lcm,gcd,sum and product of given numbers. If no numbers are given then the output would be 0. If only one number is given then the output is that number To find the GCD of numbers run the following:
$calc gcd 1 2 3 4
$1
To find the sum of numbers run the following:
$calc sum 1 2 3 4
$10
To find the LCD of numbers run the following:
$calc lcd 1 2 3 4
$1
To find the product of numbers run the following:
$calc product 1 2 3 4
$24
Output with no arguments
$calc sum
$0
Output with one argument only
$calc sum 4
$4
To test the program run the following command:
$cargo test
All the test should pass
All of the following test cases passed. Unit test were written for each functionality of the project.
The project succesfully calculated lcm,gcd,product and sum of given numbers.
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published