1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Lisa [10]
2 years ago
12

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
Note: These activities may test code with different test values. This activity will perform two tests, the first with a 5-element array (int runTimes[5]), the second with a 4-element array (int runTimes[4]). See How to Use zyBooks.
Computers and Technology
1 answer:
Lady_Fox [76]2 years ago
5 0

Answer:

Following are the program in c language

#include <stdio.h> // header file

int main() // main function

{

  int runTimes[5]={800,775,790,805,808}; // declared the array

  for (int k = 0; k < 3; k++) // itearting the loop

  {

     printf("\n%d",runTimes[k]); // display array

  }

  return 0;

}

Output:

800

775

790

Explanation:

Following are the description of program

  • Declared a array "runTimes[5]" as the" int " type and store the five integer value in it .
  • After that iterating the for loop from the 0 index to the less then 3 index .
  • Inside the for loop we print the corresponding value that are stored in the particular index in the nextline .
You might be interested in
______ is used to extract knowledge from sources of data-NoSQL databases, Hadoop data stores, and data warehouses-to provide dec
Alex777 [14]

Answer: Data analytics

Explanation:

3 0
2 years ago
Write a program that accepts 5 number and arrange them in ascending order​
Schach [20]
5
5 does this help?
5
5
5
7 0
3 years ago
Assume the secret key is: (1, 2, 3, 4) -&gt; (3, 1, 4, 2); assume the plaintext THEYLOVEIT. If the sub-block length is 3, what i
Alex777 [14]
I belive their were answer chocies to this question am i right 

8 0
2 years ago
Packet switching was invented by: <br> Apple <br> DARPA <br> Google <br> Microsoft
riadik2000 [5.3K]

Answer:  darpa

Explanation:

8 0
2 years ago
What are informational sessions?
arsen [322]

Answer:B

Explanation:

7 0
3 years ago
Other questions:
  • Sending a employee an email with important criticism represents a problem which communication process
    9·1 answer
  • Which tab provides commands for the most commonly used elements in Word software?
    15·1 answer
  • can you give me a tip to fix my SIM card becuaus when i put it on my phone it has no signal , can anyone fix this , thank you.​
    9·2 answers
  • Greg works outside. He is often found cutting grass and making the local park grounds look nice for guests.
    10·1 answer
  • What will be the results of the following code? final int Array_Size = 5;An error will occur when the program runs. There will b
    10·1 answer
  • How to convert a .enw file into a .pdf without downloading any applications? (If I have to, then I will. Just please tell me.)
    14·2 answers
  • . Write at least three benefits of using a network.​
    8·1 answer
  • OI MINHA PRIMEIRA VEZ AQUI
    7·1 answer
  • Web résumés allow you to include extra graphics and images that you would not include in a traditional résumé. please select the
    13·1 answer
  • Which device is used to direct the flow of data on a computer network?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!