How many legs 100 cows have

2 views (last 30 days)
Frank Gilbert
Frank Gilbert on 13 May 2022
Answered: Voss on 13 May 2022
I am just asking for the legs of cow! If one cow has four legs how many legs do 1000 cows poses??

Answers (1)

Voss
Voss on 13 May 2022
n_legs_per_cow = 4; % one cow has 4 legs
n_cows = 1000; % 1000 cows
n_legs_total = n_cows*n_legs_per_cow
n_legs_total = 4000

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!