(6 XP) A function that returns a number of legs of animals together.
- Fork this repository to your GitHub account.
- Open solution file in Visual Studio.
- Open file
Farm.cs
. - Implement the method
GetLegsCount(int chickens, int cows, int pigs)
that returns a number of legs. - Run with
CTRL+F5
to test it. - If all tests are passed, commit & sync your repository.
- Send a link to your repository for Lab Master (in #slack) to check it.
GetLegsCount(1, 1, 5) ➞ 26
GetLegsCount(5, 2, 3) ➞ 30
GetLegsCount(2, 3, 4) ➞ 32
- Chickens have two legs, cows have four legs and pigs have four legs.