I need answer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I need answer

Write C++ Statements) Write C++ statements to accomplish each of the following: a) Display the value of element 6 of character array f. b) Input a value into element 4 of one-dimensional floating-point array b. c) Initialize each of the 5 elements of one-dimensional integer array g to 8. d) Total and print the elements of floating-point array c of 100 elements.

16th Dec 2017, 12:35 PM
Osama
2 Answers
0
Are these your homeworks? a) cout << f[5]; b) cin >> b[3] c) for (int i = 0; i < 5; i++){g[i] = 8;} d) for (int x = 0; x < 100; x++){sum += c[x];}
19th Dec 2017, 7:12 PM
CuriousCI
CuriousCI - avatar
- 1
Yes
19th Dec 2017, 11:11 PM
Osama