If one For loop is nested within another, then the counter variables for the two loops should be different.
True or False

Answers

Answer 1

You can use the same name (identifier). It may be a different object. They both loop will not affect each other.

Inside the inner or second loop, there is no way to refer to the object used in the first loop (unless you make special bread for that, as by providing a pointer to it).

This is Normally bad style, is prone to confusion, and should be avoided.

The objects are different only if the inner one is defined alone, as with the int I you have shown. If the same name is used without shaping a new object, the loops will use the same object and will interfere with each other.

To know more about For loop:

https://brainly.com/question/25955539

#SPJ4


Related Questions

Ruben's football team lost 2 yards, which means went backwards, on their last play. Which integer best represents this?

Answers

Answer:

-2

Step-by-step explanation:

Integers can be positive or negative.

Find the missing length.

Answers

The answer is 6 because 14+6=20

Hope this helps

area of a circle is 254.34 cm2. What is the diameter of the circle, use 3.14.​

Answers

The area of a circle is:

Area = PI x r^2 ( r is the radius which is half the diameter)

Using the information in the problem:

254.34 = 3.14 x r^2

Divide both sides by 3.14:

81 = r^2

Take the square root of both sides:

r = 9

The diameter = 2r = 2(9) = 18 cm

diameter is 18 cm in length

Solve for the value of X in the parallelogram below. X = _____

Answers

Answer:

One of the properties of parallelograms is that opposite sides are congruent.  

Step-by-step explanation:

Answer:

x is equal to 1 and y is equal to 2

What is the value of z in the equation 2(4z − 3 − 1) = 166 − 46?
I know that 166-46 is 120 but i get stuck on the distributive property part. I end up with 8z-2. Also I will give brainliest.

Answers

Answer:

2(4z − 3 − 1) = 166 − 46

8z − 6 − 2 = 120

8z − 8 = 120

8z = 128

z = 16

pls give the brainliest

Step-by-step explanation:

Answer:

Step-by-step explanation:

you have to multiply 2(4z - 3 - 1 ). so 2 * 4z = 8z. so then you would do 2 * (-3) = -6. then you would do the same with -1. 2* (-1) = -2.

now you have to put it back in equation form. 8z - 6 - 2 = 166 - 46. now you have to combine like terms. -6-2 = -8. 166 - 46 = 120. and then put it back into equation form. 8z - 8 = 120. then you add 8 to 120. 120+8 = 128. now to find z all you have to do is divide 128/8 = 16

z = 16  

Which inequality is true for r = 20?

Answers

2r=40 i this this one is the correct

which algebraic expression represents "the difference of fofty-four and seven times a number

Answers

Answer:

44-7x

Step-by-step explanation:

Y varies inversely as the square of x. If y=10 and x=4, find x if y=8

Answers

Answer:

gmxgmxkydyoduryljfhlduñfixjcigtltgracjas por los puntos gigkckckxkjajguajajajjaa

Write the phrase as an algebraic expression: The product of a number m and three.

Answers

Answer:

3m

Step-by-step explanation:

Product means multiplication, so you're multiplying 3 with m.

which number is a multiple of four first answer [a 26] [b 32] [c 14] [d 22]

Answers

Answer:

b 32

Step-by-step explanation:

8 x 4 is 32

Step 6: Show how the masses of the objects affect the gravitational force between them.
a) Create a slide titled How the Masses of Objects Affect the Gravitational Force between
Them.
b) Include this table on your slide:
Mass of Object 1
(kg)
Mass of Object 2 (kg) Gravitational Force
(N)
1 x 1020 1 x 1020 1 x 1040
G
3 x 1020 1 x 1020 3 x 1040
G
2 x 1020 2 x 1020 4 x 1040
G
3 x 1020 4 x 1020 12 x 1040
G
c) Use the table to explain how the masses of Objects 1 and 2 relate to the gravitational force
between them

Answers

Answer:

134(47)√45

Step-by-step explanation:

46+24=12 dkkf

fjskkf

Answer:

ik this is late so sry but um hope this helps someone else in the future?

Step-by-step explanation:

We’re going to see how the masses of objects affect the gravitational force between them. Since gravitational force between two objects depends on the mass and distance between them, as you can see in the chart, as the mass of the objects multiplies, so does the gravitational force between them. To find the actual gravitational force between the two objects, you take the mass of both objects and multiply them. Let’s try and find the gravitational force between them. First, we have to find the mass of the object, so we’ll take the mass of objects 1 and 2 in the first equation. So let’s start with object 1, 1x10 to the 20th power which equals 10 to the 20th power, now object 2, 1x10 to the 20th power which equals 10 to the 20th power. Now we multiply the masses to get the gravitational force of 10 to the power of 40.

Hope you have a wonderful day and sry again that this is late

A bicycle wheel makes five rotations. The bicycle travels ft. Find the diameter of the wheel in inches. Use 3.14 for .

Answers

Answer:

[tex]r=\frac{L}{2pi R}[/tex]

Diameter=2r

inches=12*ft

Step-by-step explanation:

You forgot to say how far the bike travels.

Given R rotations, L feet, and a wheel radius of r, then the relationship is

[tex]L=2\pi rR[/tex]

Solving this for r gives

[tex]r=\frac{L}{2pi R}[/tex]

Diameter=2r

inches=12*ft

cuánto es 2 4/8 + 1/4 ayuda porfa​

Answers

La respuesta es,

[tex]2 \frac{3}{4} [/tex]

how many 1/2 inch cubes does it take to fill a rectangular prism with a length of 1 inch, a width of 2 inches and a height of 3 inches

Answers

Answer:

Step-by-step explanation:

Help me anyone I need it now!

Giving brainliest

Answers

Step-by-step explanation:

simple interest formula is I = p × r × t / 100

$32 = p × 8 × 3 / 100

$32 = 24p / 100

32 × 100 = 24p

3200 / 24 = $133.33

Help ASAP Draw a tape diagram representing the following situation. You may need to decide what to present with a variable.
At an athletic banquet, an equal number of athletes were seaterd at each of the 7 large tables, and 24 parents were seated together on the other side of the room. There were 87 guests attending.

Answers

Answer:9

Step-by-step explanation:87-24=63 and 63 divided by 7 equals 9

why is 6 divided by zero, zero and zero divided by six is undefined?​

Answers

Answer:

See below.

Step-by-step explanation:

The reason a number divided by zero is undefined is as follows.

Every operation, addition, multiplication, subtraction, and division, is carried out between two numbers and must have a single correct answer.

For example 1 + 5 = 6. The only correct answer to 1 + 5 is 6. There is no other correct answer to that addition. The same is true of any multiplication, subtraction, or division. Another example: 8/2 = 4. No other correct solution exists to the division of 8 by 2 other than 4.

Division is defined in terms of multiplication.

The definition of dividing a number by another number is:

a divided by b equals c if and only if b * c = a.

For example, 10/5 = 2 if and only if 5 * 2 = 10. 5 * 2 does equal 10, so it is correct that 10/5 = 2.

Now let's try dividing by zero and see the problem that arises.

Let's try to divide 8 by 0.

8/0 =

Since we are not used to dividing by zero, we don't really know what the answer should be, but we can try different answers.

Let's say 8/0 = 8

Then by the definition of multiplication, we need 0 * 8 to equal 8, but we know that 0 * 8 = 0, so the answer of 8/0 cannot be 8. Let's try a different answer.

8/0 = 0, then we need 0 * 0 to equal 8, but 0 * 0 = 0, not 8, so 0 also does not work.

We can generalize and try

8/0 = k, but then that requires 0 * k to equal 8. Since multiplication by 0 always has a result of 0, there is no number k that will multiply by 0 and give 8. This means that a number divided by 0 cannot give a result.

Now let's try one more thing.

What about 0 divided by 0.

Let 0/0 = 1. Then 0 * 1 = 0. It seems to work, but here there is a different problem. We could also say that 0/0 = 2 since 0 * 2 = 0; 0/0 = 3 since 0 * 3 = 0, etc. and now 0/0 can equal every number. The result of a division must be a unique answer, not all numbers.

When we try to divide a non-zero number by 0, no number works in the definition of division, so dividing a non-zero number by 0 is undefined. When we try to divide 0 by 0, every number works. Since there is no unique solution, 0/0 is also undefined. Therefore, division by zero is undefined.

Now the last part of your question.

What about 0 divided by 6?

0/6 = 0 if and only if 6 * 0 = 0. Well, 0 * 6 does equal zero. There is no other number that you can use as the quotient of 0/6 and have the corresponding multiplication equal zero, so 0/6 is indeed 0, and that operation is defined.

0 divided by any number other than zero is a defined division and equals 0.

Conclusion:

(any number)/0 is undefined

0/(any number other than zero) is defined and equals zero

A company is buying desks and chairs for their new offices. Desks cost $ 225 each and chairs cost$75 each. They have a budget of $1,400. Given the budget, which is a viable option for the furniture they can purchase?
a.5 desks and 4 chairs
b.2 desks and 13 chairs
c.3 desks and 10 chairs
d.4 desks and 6 chairs
PLEASE HELP!

Answers

Answer:

D

Step-by-step explanation:

4 desks at $225 each equals $900 (4 × 225)

6 chairs at $75 each equals $450 (6 × 75)

$900 + $450 = $1350

The answer is D

How do I solve for w?

Answers

Answer:

w = 8

Step-by-step explanation:

Based on the altitude theorem of a right triangle, we have:

w + 4 = √(24*6)

w + 4 = √144

w + 4 = 12

w + 4 - 4 = 12 - 4

w = 8

What is
12% of £1260

Answers

Answer:

£151.2

Step-by-step explanation:

12% of £1260

= 0.12 (1260)

= 151.2

what is the equation for line b​

Answers

Answer:

y=1/2x+1

Step-by-step explanation:

you can literally do rise over run to get the answer

Classify by degree of polynomial:
3x3 - 6x

Answers

Answer:

3x(x2−2)

Step-by-step explanation:

using digits 3,6,1 and 5 write the greatest decimal number less than 1 that can be formed without repeating any digit. write it in words​

Answers

0.6531
Six tenths, five hundredths, three thousandths, one ten thousandth.

Carsen loves to run. She runs 4 miles each day. If she wants to run a total of 56 miles how many days should she run? Write an equation to show this problem along with the answer.
SHOW YOUR WORK.

Answers

Answer:

14 days

Step-by-step explanation:

you just do 56/4=x, x=14

Find the whole. 60% of what number is 9?

Answers

Answer:

15

Step-by-step explanation:

60% × ? = 9

? =  

9 ÷ (60 ÷ 100) =

       or

(100 × 9) ÷ 60 =

900 ÷ 60 =

15

How do we check the result?

If 60% × 15 = 9 =>

Divide 9 by 15...

... And see if we get as a result: 60%

9 hours to 2 days what is the ratio

Answers

Answer:

3:16

Step-by-step explanation:

2 days = 48 hours

9:48 = 3:16

Help ASSp please work out the value of A

Answers

Answer:

A = 3x^2 - 3

   ---------------

          2

Step-by-step explanation:

If the perimeter is 56 cm..

x - 1 + 3x + 3x + 1 = 56

7x = 56

x=8

The x - 1 side = 7

The 3x = 1 side - 25

The ex side = 24

The area of a triangle = base time height divided by 2.

So...

x-1 times 3x divided by 2 is your equation.

3x(x - 1) = 3x^2 - 3

A = 3x^2 - 3/2

Hope this is correct!!!

Sylvia has $30 to spend on three gifts she spent 11 9/10 the dollars on gift a and 4 3/5 dollars on gift b how much money does she have left for gift c​

Answers

Answer:

$13.50

Step-by-step explanation:

30 - (11.90 + 4.60) = 30 - 16.50 = 13.50

PLEASE HELP FAST
2. Which of the following is the difference of two squares?
49m2 + 81n?
9a? - 466
99
36h
2x2 – 6y?

Answers

Every difference of squares problem can be factored as follows: a2 – b2 = (a + b)(a – b) or (a – b)(a + b). So, all you need to do to factor these types of problems is to determine what numbers squares will produce the desired results.

1. Write your answer with the number only, for example 555. Do not use a
degree symbol. *
The angles below form a linear pair.
What is the measure of angle ABC?

Answers

Answer:

Angle ABD= 132 degrees

Step-by-step explanation:

We know this because the angles are supplementary meaning they add up to equal 180.

180-48= 132

Answer:

132

Step-by-step explanation:

i took the test]

Other Questions
When a reader summarizes a theme, the reader should be O include all the details of the original text. O make the summary as long and involved as possible. O state personal opinions about the events. o include evidence that supports how the theme develops. What conclusions can you draw about the effects of President Jackson's Indian Removal Policy on the lives and culture of Navtive Americans? 8-3(6-6x) please help HELPIn a fruit basket there are 9 bananas, 4 apples, and 3 plums. Fill in the blanks- The ratio of bananas to apples is ___:___ The day after the day after tomorrow is four days before Monday. What day is it today? 2. Which atom in the water molecule is negatively charged? What kind of figurative language does Grass by Carl Sandburg use? Explain why What was America's response to the Nanjing Massacre?a. Publicly condemning the Chinese armyb. Halting trade to slow the Japanese militaryc. Sending convoys of medical supplies and foodd. Suspending trade negotiations with the Axis Powers What is the purpose of xylem? According to the substitution effect of labor supply, when the wage rate goes up: Group of answer choices it becomes more costly to consume leisure, so people will work more. it becomes less costly to consume leisure, so people will work more. the opportunity cost of enjoying leisure goes down. firms will hire more workers since people are more willing to work. Learning Task 5: Make a slogan about the safety rules in creating or repairing electrical gadgets Taylor and Katy repeatedly toss a fair coin. Katy wins if heads are thrown, Taylor wins if tails are thrown, and the game ends when someone has won three times. Katy is currently behind 1 to 2. The chance Katy wins is: The Great Depression created ideal conditions for the rise of powerful leaders whopromised to restore their nations to glory.TrueFalse ayudaa para maana !! El aire es susceptible a contaminarse fcilmente cuando otros gases no comunes asu composicin se integran a l. Esto genera un desequilibrio en los porcentajesadecuados de sus componentes naturales. Las principales fuentes contaminantes delaire son: el trnsito automotor que se deriva de la quema de combustibles fsiles,como la gasolina: las industrias que expulsan gases como metano, dixido de azufre;la quema de basura y vegetacin que genera el dixido de carbono y loscloroflurocarbonados utilizados en los aerosolesextraer de la lectura 4 verbos identificados y ponerlos en sus tiempos verbales presente , pasado y futuro plzzzzzzz help my lil sister out she wont stop texting me while im working Find the quotient. Answer as a decimal. 6 1 1331 What word(s) were used to describe the classical style during the period?O Classical StyleGalant StyleBoth Galant & Empfindsam StyleO Empfindsam Style 20 pts help................... A certain region of America with over 500,000 households has a mean household income of $70,000 with a standard deviation of $20,000. Economists plan to take random samples of 625 households and calculate the sample mean income for each sample. Calculate the mean of the sampling distribution of x-bar.