Type your programming question here…
- Consider the
following function main and copy it into a file to be run later:
#include <stdio.h>
int main()
{
int alpha[20];
int beta[20];
int gamma[4];
int delta[10];
gamma[0] = 11; gamma[1] = 13; gamma[2] = 15; gamma[3] = 17;
delta[0] = 3; delta[1] = 5; delta[2] =
2; delta[3] = 6; delta[4] = 10;
a. create
the code that prompts the user to input 20 numbers and stores the numbers into alpha.
b. write
the code that initializes the elements in beta
to 2 times the corresponding values in alpha.
Make sure NOT to modify the values in alpha.
c. create
the code that displays all of the values in alpha.
(submit
has hw9.5.c and hw9.5 (output))


0 comments