Answer to Question #259998 in C++ for aria

Question #259998

Write three statements to print the first three elements of array runTimes. Follow each statement with a newline. Ex: If runTime = {800, 775, 790, 805, 808}, print:

800 
775 
790
1
Expert's answer
2021-11-01T18:45:20-0400
#include<iostream>
using namespace std;
int main(){
  int	runTime [5]= {800, 775, 790, 805, 808};
  
  for(int i=0; i<3; i++){
  	
  	cout<<runTime[i]<<endl;
  
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS