subject

Write a for loop to print all elements in coursegrades, following each element with a space (including the last). print forwards, then backwards. end each loop with a newline. ex: if coursegrades = {7, 9, 11, 10},
print:
7 9 11 10
10 11 9 7

hint: use two for loops. second loop starts with i = num_vals - 1.

#include

int main(void) {
const int num_vals = 4;
int coursegrades[num_vals];
int i = 0;
coursegrades[0] = 7;
coursegrades[1] = 9;
coursegrades[2] = 11;
coursegrades[3] = 10;

/* your solution goes here */
return 0;
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:50
Can online classes such as gradpoint track your ip location like if im taking a final and i give somebody else my account and they take the final for me will it show where they are taking the final from? and can this be countered with a vpn
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Quick pl which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 06:40
How many nibbles can be stored in a 16-bit word?
Answers: 1
question
Computers and Technology, 24.06.2019 00:10
Read each statement below. if the statement describes a peer-to-peer network, put a p next to it. if the statement describes a server-based network, put an s next to it. p - peer-to-peer s - server-based
Answers: 1
You know the right answer?
Write a for loop to print all elements in coursegrades, following each element with a space (includi...
Questions
question
Mathematics, 22.02.2022 07:30
question
Mathematics, 22.02.2022 07:40
question
Mathematics, 22.02.2022 07:40
question
Mathematics, 22.02.2022 07:40
question
Mathematics, 22.02.2022 07:40
Questions on the website: 13722359