ok
accept 2 values from user
cin <<val1;
cin <<val2;
now this is what I have to do, how do I write the code for this
initialize all elements of the array using the following formula
a. i*i*val2 or (i*val1) whichever is lesser(i represents the index of the array element)
How do I do this?
accept 2 values from user
cin <<val1;
cin <<val2;
now this is what I have to do, how do I write the code for this
initialize all elements of the array using the following formula
a. i*i*val2 or (i*val1) whichever is lesser(i represents the index of the array element)
How do I do this?
