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
#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
1
Answer:
I like it kali bili mujhe pasand hai
Similar questions