I prefer keyboard writing but if you will write it at pepper please make it clearly
7. (Write C++ Statements) Write one or more statements that perform the following tasks for an array called factorial: a) Define a constant variable array Size and initialize it to 5. b) Declare an array with array Size, of type int, and initialize the elements to 0. c) Refer to fourth element of array. d) Assign the result of 3! to array element 4. e) Display array elements 4. f) Display all the array elements using a counter-controlled for statement. Define the integer variable i as a control variable for the loop. Display all the array elements separated by spaces.
I prefer keyboard writing but if you will write it at pepper please make it clearly
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am