![crazyshaniya](/avatars/2744.jpg)
crazyshaniya
03.07.2020 •
Computers and Technology
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.
Solved
Show answers
More tips
- L Legal consultation How to Properly Inherit: Tips and Recommendations...
- H Health and Medicine Discover the Hidden Principles and Real Results of the Japanese Diet...
- H Health and Medicine Understanding Pregnancy Tests: What You Need to Know?...
- H Health and Medicine What Makes a Man a Man?...
- C Computers and Internet How to Get Rid of Spam in ICQ?...
- A Art and Culture Who Said The Less We Love a Woman, the More She Likes Us ?...
- F Family and Home How to Get Rid of Your Neighbors?...
- S Society and Politics How Could Nobody Know About the Dead Mountaineers?...
- H Health and Medicine How to Cure Adenoids?...
- H Health and Medicine Why Wearing a Back Brace Can Be Beneficial During Back Strain?...
Answers on questions: Computers and Technology
- C Computers and Technology Which if the following ribbons in Microsoft word is used to add tables and images...
- M Mathematics Find all polar coordinates of point P where P = 9, -π/5...
- H Health What makes plastic bottles a big concern in oceans and not other materials such as metals, wood or paper materials? A - Bottle caps are light weight and MORE dense than water,...
- E English A student is writing a report for history class about the importance of the Magna Carta. Read the draft of the report and complete the task that follows. When we think of the most...
- H History What is the impact of the Populist Movement and the Progressive Era in our world today in Texas? The belief that business will look out for the interest of people Complete government...
- M Mathematics A recipe calls for 310 cup of sugar for every 5 cups of water. How many cups of sugar are needed for 25 cups of water?...
- H History At what time do radar operators on Oahu spot unidentified aircraft heading towards Oahu...
- H History What is apartheid and what are two examples of it in South Africa s history. please dont give links, non-applicable answers, or try to get free. points. from this....
- M Mathematics What is the scale factor Please help me...
- C Chemistry 351 Joules of energy was released when a 12 gram sample of unknown metal with an initial temperature of 90 °C was cooled down to 25 °C Describe the direction of heat flow between...
Ответ:
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 .Ответ: