'Hovercraft' task. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

'Hovercraft' task.

I don't understand the task. How is it possible to have 'Loss' output for 5 hovercrafts if I spend 5*2mil+1mil=11mil and sell them for 5*3mil=15mil. Profit: 4mil.

20th Dec 2019, 7:35 AM
Илья Карпенко UA
Илья Карпенко UA - avatar
3 Answers
+ 7
Read problem carefully. There they mentioned 10 hovercraft in a month. Means they make 10 in a month with the cost of 2mil + 1mil so total cost will be 21mil but you sold 5 in a month with each 3mil so total selling cost will be 15mil. So here is loss of 6mil.
20th Dec 2019, 9:24 AM
A͢J - avatar
was goin to ask this
24th Dec 2019, 9:28 PM
And I don't get how to pass the test. I'm trying to use Input() as test wants to add different inputs but with no success.
22nd Jan 2020, 12:07 PM
Dominik Rok
Dominik Rok - avatar