Your father has presented a lovely red car on your birthday. You drove the car for 5 hours at an average speed of 70 kms/ hr. Write a program in C++ to calculate how much distance you covered with your car.
Answers
Answered by
1
Explanation:
Example -
Input: N = 5, K = 2, M = 1
arr[] = {3}
Output: 2
The car starts at 0, with its tank full, travels for 2 km and then refills its tank at 2 km. The car makes the compulsory stop at 3 where its tank if refilled again. It travels for 2 km more to reach its destination of 5 km.
Input: N = 10, K = 2, M = 3
arr[] = { 6, 7, 8 }
Output: 5
The car starts from 0, stops at 2, 4 for refilling its tank, before making compulsory stops at 6, 7, 8. It travels 2 km from 8 km to make its journey of 10 km complete.
Brainliest answer
Answered by
2
Answer:
d=t×s sq.units
d=5×70km
d=350km
Explanation:
pls mark it as brainliest...
Similar questions
Computer Science,
5 months ago
Math,
5 months ago
Computer Science,
5 months ago
Math,
10 months ago
History,
10 months ago
India Languages,
1 year ago
World Languages,
1 year ago
Physics,
1 year ago