1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
maw [93]
3 years ago
9

Write a for loop that assigns summedvalue with the sum of all odd values from 1 to usernum. assume usernum is always greater tha

n or equal to 1. ex: if usernum is 5, then summedvalue is 9 (i.e. 1 + 3 + 5 = 9).
Mathematics
1 answer:
nadya68 [22]3 years ago
5 0
I don't know which language you use those, so I assume that you use c++
for (int i = 1; i <= userNum; i++)
{
      summedValue = summedValue + i;
      i = i + 1;
}
You might be interested in
In a survey of more than 4000 people, 91% of
Flura [38]
.91 times 4000=3640 people prefer Pedro’s

4000-3640= 360 people prefer other brands
5 0
3 years ago
Read 2 more answers
adam is a scuba diving. he descends 5 feet the same distance 4 more times .what is adam final elevation
a_sh-v [17]
Adam descends 5 feet Multiply 5 by four and then you get 30 feet
4 0
4 years ago
Read 2 more answers
Simplify the following expression -5x to the 2power +2 +10x to the 2 power - 6x
andrey2020 [161]
Your awnser is=5x2−4
4 0
3 years ago
What property does have to make it more suitable for water pipes than metal pipes?​
Allisa [31]

Answer:

Copper

Explanation:

Copper would be beacuse it's non-toxic, it's antimicrobial, it's rustproof, and it is affordable.

5 0
3 years ago
1. A bakery packages 96 boxes of muffins today. The bakery sells 4 sizes of boxes of muffins. The table shows how many muffins a
Vadim26 [7]

Answer:1000

Step-by-step explanation:

Yes

8 0
3 years ago
Other questions:
  • If c is a set with c elements how many elements are in the power set of c
    14·1 answer
  • SOS WHAT IS THE SQUARE ROOT OF 144/256?
    13·2 answers
  • Find the domain of the function. f(x) = -2x + 4 A. (-∞, 0) u(0, ∞) B. (-∞, ∞) C. [-4, ∞) D. (0, ∞)
    13·1 answer
  • The 5th of 9 consecutive whole numbers whose sum is 153 is?
    13·2 answers
  • Choose the example below that can be the first step to factoring by grouping for the following polynomial.
    9·1 answer
  • Book store has 6 shelves of books about animals. There 30 books on each shelf. Distributive property diagram
    12·1 answer
  • Find the slope that passes through the two points. (9,3) and (6,7)
    15·1 answer
  • Pls help ASAP will mark Brainlyest!!
    13·2 answers
  • Pleaseeee answer correctly <br> Will mark Brianliest !!! HELP !
    15·1 answer
  • Nachelle has a bag of candy full of 1 strawberry chew and 19 cherry chews that she
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!