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
den301095 [7]
2 years ago
14

Given an int variable n that has already been declared and initialized to a positive value, and another int variable j that has

already been declared, use a for loop to print a single line consisting of n asterisks. Thus if n contains 5, five asterisks will be printed. Use no variables other than n and j.
Mathematics
1 answer:
Inessa05 [86]2 years ago
7 0

Answer:

for(j = n; j > 0; j--)

System.out.print(\"*\");

Step-by-step explanation:

-A for loop is a repetition control structure.

-It allows the efficiency to write a loop that would otherwise be written a couple of times.

-The output is a single line comprising n asterisks,

-The number of asterisks printed will be equivalent to the n-value declared.

You might be interested in
rachel was cutting out some fabric for a friend. she cut a piece that was 5 cm wide and had an area of 20(20)cm. how long was th
Pavlova-9 [17]
Area of a rectangle is L * W

L = x
W = 5

5x = 20 (Divide by 5 on both sides)
x = 4 

L=4
W= 5

The length is 4cm 

Hope this helps :)
3 0
3 years ago
Kimora wants to put ribbon around her SQUARE picture frame. One side is 7 inches long. How much ribbon will she need? (hint: aro
denis23 [38]
Answer is 28 inches.

A square has equal sides and to find the perimeter, you add all the sides.

7 x 4 = 28
7 0
3 years ago
Helpppppppppppppppppppp
Effectus [21]
Simple proportions.

You want a 1:5 ratio.
You have a 5:1 ratio.
So you add another 24 drops of white.
5:25 = 1:5 
or
5/x = 1/5 and cross multiply.
7 0
3 years ago
Find the mean of the following data set.
rosijanka [135]

Answer:

10

Step-by-step explanation:

the sum of 8,5,15,12,10 is 50 and there are 5 numbers so 50 divided by 5 is 10 and it's mean is also 10

hope this helps !

4 0
2 years ago
Read 2 more answers
Consider the equation 2/5y = 20. Tell whether each statement is true or false
svlad2 [7]

Answer:

A. True
B. False
C. False
D. True

Step-by-step explanation:

3 0
2 years ago
Other questions:
  • What is P(A and B)?
    6·2 answers
  • Solve for d d= 3r + 120 ;r= 62
    12·2 answers
  • The four digit 489A is divisible by 11.<br> What digit does A represent?
    12·1 answer
  • What are the 2 points ,, red or orange ,, what is the solution
    14·1 answer
  • Which equation is in point-slope form for the given point and slope?
    5·1 answer
  • What are the three angle measures in the triangle shown below?
    9·2 answers
  • Translation is a congruency transformation. True or false
    10·2 answers
  • Which defines ray?
    9·2 answers
  • In ΔPQR, p = 75 inches, q = 73 inches and r=35 inches. Find the measure of ∠P to the nearest 10th of a degree.
    11·2 answers
  • What are the solutions to the equation |X – 3|= 14?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!