// Input value is usernum.
// This code snippet sums 1 + 3 + 5 + ... + usernum
// The answer is stored in the variable summedvalue.
N = (int) (usernum+1)/2; // maximum number of integers to be summed
int *v = malloc(N*sizeof(int)); // allocate storage for array v
// Calculate the number of loop counts and assign array v..
count = 0;
k = 1;
while (1) {
if (k>usernum) { // do not extend v beyond usernum
break;
}
v(count) = k; // assign an odd integer to v, including usenum
count++;
k += 2; // k is an odd number
if k>usernum { // handle usernum as odd or even
k = usernum;
}
}
n = count; // the size of array v.
// Calculate the sum in a for loop
summedvalue = 0; // initialize summedvalue
for (i=0; i<=n; i++) {
summedvalue += v(i);
}
Answer:
485
Step-by-step explanation:
97×5 = 485
hope you find this useful
Answer:

Step-by-step explanation:
the total number of balls = 3 + 3 + 2 = 8
Let p be the probability of choosing a green ball, replacing it, and then choosing a yellow ball.




The answer is 90 because you need to do 6x15 which =90
Answer:
hello again
Step-by-step explanation:
i think so,first box's volume:
V=3.5×1.4×1.8=8.32
other box's volume:
V=3.1×1.1×1.4=4.774
then,8.32-4.774=4.046
hope it helps
have a nice day