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
Round 0.007492 to four decimal places.
abruzzese [7]
Answer: 0.0075

Just round up the 4 to 5 then u got your answer.
8 0
2 years ago
I need help if help 5 pt
german

3 3/4 = 15/4

15/4 * 1/2 = 15/8 = 1 7/8

answer: he put 1 7/8 into the riding lawn mower

5 0
3 years ago
Nora’s leaf collection consisted of 150 leaves in August. By December, her collection had grown to 177 leaves. By how much did h
castortr0y [4]

Answer: 18%


177/150=1.18

3 0
3 years ago
A child weighs 44 lbs. The physician orders a medication for 10 mg/Kg/day. What do you give per day? (Use 0.45 for your conversi
Bond [772]

Answer:

198 mg

Step-by-step explanation:

A child weighs 44 lbs.

Step 1

We convert the child's weight to kg

1 Ibs = 0.45kg

44 Ibs = x

Cross Multiply

1 Ibs × x = 44 Ibs × 0.45 kg

x = 44 Ibs × 0.45 kg/1 Ibs

x = 19.8 kg

Step 2

The physician orders a medication for 10 mg/Kg/day.

From the above statement, we know that:

10mg = 1 kg

Hence, what you give per day is calculated as:

1 kg = 10 mg

19.8kg = x

Cross Multiply

1 kg × x = 19.8kg × 10mg

x = 19.8kg × 10mg/1kg

x = 198mg

Therefore, what you will give per day to a child of 19.8kg(44 Ibs) is 198mg per day

3 0
3 years ago
Evaluate each expression <br><br> 1-(-8)
julsineya [31]
1-(-8)
1+8 (add a line change the sign)
=9
4 0
3 years ago
Other questions:
  • What is the value of (-3.8) +0 + (-1.6)+ 64?
    15·2 answers
  • I really really need help someone!! )):
    5·1 answer
  • Solve the system of equations using the substitution method. x=3+12y
    11·1 answer
  • One of your friends gives you $10 for a charity walkathon. Another friend gives you an amount per mile. After 5 miles you have r
    13·1 answer
  • The diameter of a white blood cell under magnification appears to be 0.3 centimeters. What is the diameter of the white blood ce
    5·2 answers
  • Is there sufficient evidence at the a = 0.10 level to conclude that, on average, they sent each other more
    9·1 answer
  • Given the digits 2,5,7,9, 4, and 1, how many 4-digit codes can be made if 4 points
    11·1 answer
  • SOEMOENN HELP ME PLEASE WITH A MATH PROBLME If x is 6, what is:<br> 7- X
    12·2 answers
  • Which number line shows the correct locations of all the given values?
    13·1 answer
  • PLZZZZZZZZ HELLLPPPPP DUEEE TODAY!!!!!!!!!!!!!!!!!
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!