[tex]{\underline{\underline{\huge{\red{\bold {hello : )}}}}}}[/tex]
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.
[tex] \huge \underline \bold \red {Answer \: it}[/tex]
[tex]<marquee>5 points</marquee>[/tex]
[tex] \green {No \: Spam}[/tex]
Answers & Comments
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
Answer:
d=t×s sq.units
d=5×70km
d=350km
Explanation:
pls mark it as brainliest...