You have created three arrays: array A of size 100 array B of size 50 array C of size 200 You are to store the first 100 numbers (1,2,3,..,100) into array A, the first 50 positive odd numbers (1,3,5,..,) into array B, and the reciprocal of each position [C(5) = 1/5] into array C. Then, output the contents of each array.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question

In C language please

You have created three arrays:
array A of size 100
array B of size 50
array C of size 200
You are to store the first 100 numbers (1,2,3,..,100) into array A, the first 50 positive
odd numbers (1,3,5,..) into array B, and the reciprocal of each position [C(5) = 1/5] into
array C. Then, output the contents of each array.
Transcribed Image Text:You have created three arrays: array A of size 100 array B of size 50 array C of size 200 You are to store the first 100 numbers (1,2,3,..,100) into array A, the first 50 positive odd numbers (1,3,5,..) into array B, and the reciprocal of each position [C(5) = 1/5] into array C. Then, output the contents of each array.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT