Page 1 of 1

Question 1 Write one or more statements that perform the following tasks for an array called fractions: a. Define a cons

Posted: Sun Jul 10, 2022 11:31 am
by answerhappygod
Question 1 Write One Or More Statements That Perform The Following Tasks For An Array Called Fractions A Define A Cons 1
Question 1 Write One Or More Statements That Perform The Following Tasks For An Array Called Fractions A Define A Cons 1 (46.96 KiB) Viewed 57 times
Question 1 Write one or more statements that perform the following tasks for an array called fractions: a. Define a constant integer variable arraySize initialized to 10. b. Declare an array with arraysize elements of type double and initialize the elements to 0. c. Display the fourth element of the array. d. Assign the value 1.2 to array element 9. e. Print array elements 6 and 9 on the screen. f. Print all the elements using a for statement. Define the integer variable i as a control variable for the loop. Show the output.