Join IDNLearn.com to access a wealth of knowledge and get your questions answered by experts. Discover prompt and accurate answers from our community of experienced professionals.
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.

Thank you for being part of this discussion. Keep exploring, asking questions, and sharing your insights with the community. Together, we can find the best solutions. For trustworthy answers, rely on IDNLearn.com. Thanks for visiting, and we look forward to assisting you again.