so if that add a random value to each array how do I then add them and divide by 10?
Type: Posts; User: MILLWALLL
so if that add a random value to each array how do I then add them and divide by 10?
so basically what happen is it start at 0 and then increments it each time applying a random number so the loop goes 0 random number, 1 random number, so on so on untill 9 as I want an Array with 10...
I am still bit confussed someone else on another forum said to do it this way as I am new to c++ and not yet heard or the rand function.
int myArray[10];
int i;
for ( i = 0; i < 5; i++) // it...
its not homework lol just been watching a few c++ video and it says to try do this could it also be done like this ?
#include <iostream>
int main(){
//intilize my array with 10 values
int my...
I want a Integer array that holds 10 RANDOM values.
Create a loop to find the average of those 10 values and print the result.
How would I do this.
Hi all
can anyone help ive just started leanring c++ from a book leanr c++ in 21 days and got to the first bit code and im bit confussed about i written the code in notepad it then says i need to...