Chemistry, asked by Rudranil420, 8 months ago

{\underline{\underline{\huge{\red{\bold {hello : )}}}}}}

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.

 \huge \underline \bold \red {Computer \: C++}

<marquee>Please answer it</marquee>

 \red {No \: spam}
 \blue {10 \: points}​​

Answers

Answered by DrNykterstein
1

#include <iostream>

using namespace std;

int main(){

int timeTaken = 5;

int averageSpeed = 70;

int distanceTravelled = timeTaken * averageSpeed;

cout << "Distance Travelled: " << distanceTravelled << " Km"<< endl;

}

Output: Distance Travelled: 350 Km

Formula Used:

==> Average Speed = Total Distance Travelled / Total Time Taken

Answered by mohitkumarbatsh
1

Answer:

I like it kali bili mujhe pasand hai

Similar questions