Westonci.ca is the premier destination for reliable answers to your questions, provided by a community of experts. Join our platform to get reliable answers to your questions from a knowledgeable community of experts. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.
Sagot :
Answer:
Following are the code to the given question:
#include <iostream>//header file
using namespace std;
int main()//main method
{
int runTimes[] = {800, 775, 790, 805, 808};//defining array of integer
for(int x=0;x<3;x++)//defining for loop to print three element of array value
{
printf("%d\n",runTimes[x]);//print array value
}
return 0;
}
Output:
Please find the attached file.
Explanation:
In this code, an array integer "runTimes" is declared that holds the given array values, and in the next step, a for loop is declared.
Inside the loop, an integer variable x is declared that starts from 0 and ends when its value less than 3 in which we print the first three array element values.

We appreciate your time on our site. Don't hesitate to return whenever you have more questions or need further clarification. Thank you for your visit. We're committed to providing you with the best information available. Return anytime for more. We're glad you chose Westonci.ca. Revisit us for updated answers from our knowledgeable team.