Answer:
Following are the C++ code
int speed=20; // Store 20 in the speed varaible.
int time=10; //Store 10 in the time variable.
int distance = speed *time; // multiply by speed *time
cout<<distance; // display the value of distance
Explanation:
Following are the program in C++ language :
#include <iostream> // header file
using namespace std; // namespace
int main()
{
int speed=20; // Store 20 in the speed varaible.
int time=10; //Store 10 in the time variable.
int distance = speed *time; // multiply by speed *time
cout<<distance; // display the value of distance
return 0;
}
Output:20
Explanation:
Following are explanation of following code