Answer:
Following are the code to this question:
for (i = 0; i <3; ++i)//defining loop to print value
{
cout<<runTimes[i]<<endl;//print value
}
Explanation:
Full program code to this question:
#include<iostream>//defining header file
using namespace std;
int main() //defining main method
{
const int NUM_ELEMENTS = 5;//defining const integer variable
int runTimes[NUM_ELEMENTS]; //defining integer array
int i;//defining integer variable
for (i = 0; i < NUM_ELEMENTS; ++i)//defining loop to input value
{
cin >> runTimes[i];//input value
}
cout<<"print three elements value of array: "<<endl;
for (i = 0; i <3; ++i)//defining loop to print value
{
cout<<runTimes[i]<<endl;//print value
}
return 0;
}
Output:
Please find the attachment.
Description:
- In the above code, an integer const variable "NUM_ELEMENTS" is declared, that assign value "5" which is array size, in the next step, an array "runTimes" is declared.
- In the next step, for loop is used, that uses an integer variable "i", which is used to input all array elements.
- In the next line, another for loop is used, which uses "i" variable, which starts from 0 and ends when its value less than 3, inside the loop print method, used that prints 3 array elements.
Straw man
eg. "Senator Jones says that we should not fund the attack submarine program. I disagree entirely. I can't understand why he wants to leave us defenseless like that."
Ad hominem
eg. “How can you argue your case for vegetarianism when you are enjoying your steak?”
Over simplication
eg. President Bush wants our country to trade with Fidel Castro's Communist Cuba. I say there should be a trade embargo against Cuba. The issue in our election is Cuban trade, and if you are against it, then you should vote for me for president.
Bandwagon
eg. Everyone is selfish; everyone is doing what he believes will make himself happier. The recognition of that can take most of the sting out of accusations that you're being "selfish." Why should you feel guilty for seeking your own happiness when that's what everyone else is doing, too?
Black or white
eg. Well, it's time for a decision. Will you contribute $20 to our environmental fund, or are you on the side of environmental destruction?
A leaf is green and fire is usually red or orange
Answer:
sum = 0 must be before for loop. If inside for loop, it will keep resetting sum to 0 each iteration.
Explanation:
hope this helps
Answer:
JPEGs, GIFs and PNGs are common raster image types. ...
Vector images, alternatively, allow for more flexibility. Constructed using mathematical formulas rather than individual colored blocks, vector file types such as EPS, AI and PDF* are excellent for creating graphics that frequently require resizing.