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]
3 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]3 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
If the temperature is -17° F at 8 am, and 23°F at noon, how much did the temperature rise?
dedylja [7]
17 + 23 = 40

The temperature rose 40 degrees.
3 0
3 years ago
Read 2 more answers
Solve the simultaneous equations:<br><br> 3a-2b=14 <br> 12a+9b=39
kirill [66]
Use elimination
Multiply first equation by 4
12a - 8b = 56
12a + 9b = 39
Subtract both
-17b = 17
b = -1
Plug in -1 for b
3a - 2(-1) = 14
3a = 12, a = 4
Final answer: a = 4, b = -1
5 0
3 years ago
Chuck is taking his kids to the store to buy new Converse shoes. He is given a choice of high tops or low tops. They may choose
monitta

Answer:

the possible outcome are two but don't trust me on that

8 0
3 years ago
HELPPP I WILL GIVE YOU BRAINLIEST WALLAH
Eduardwww [97]

Answer:

78qt= 19.5 U.S. gallons

Step-by-step explanation:

6 0
3 years ago
What is an equation of the line that passes through the points (1,3) and (8,5)?
slamgirl [31]

Answer:

y=2/7x+19/7

Step-by-step explanation:

Slope = m = (y₂-y₁)/(x₂-x₁) = (5-3)/(8-1) = 2/7

Therefore, our equation so far is y=2/7x+b where we can calculate b, the y-intercept by plugging in one of our given points [I used (1,3)]:

y=2/7x+b

3=2/7(1)+b

3=2/7+b

21/7=2/7+b

19/7=b

Therefore, our final equation is y=2/7x+19/7

4 0
3 years ago
Other questions:
  • Simplify: 1/3(6ab-9b)+2/3(9ab+12)
    10·1 answer
  • Imagine a clock with a circular face and two hands (hours and minutes) that is set at 12:00 noon. Describe the transformation of
    5·1 answer
  • PLEASEEEEE HELP!!!!!!!!!!
    14·1 answer
  • A pile driver falls freely from a height of 4.50 m above a pile. What is its velocity as it hits the pile? Remember to include y
    10·1 answer
  • In the stock market an amazon stock share rose 4 and 1/2 points on Wednesday rose 3 and 3/8 points on Thursday and fell 2 and 1/
    6·1 answer
  • A square has a side lengths of 9, use the pythagorean theorem to find the length of the diagonal
    9·2 answers
  • PLS HELP ME ON THIS QUESTION I WILL MARK YOU AS BRAINLIEST IF YOU KNOW THE ANSWER!!
    12·1 answer
  • Solve for x. Round your answer to 2 decimal places.
    6·1 answer
  • Huy is painting eight styrofoam cubes for a science project. the side length of the cube measures 6 1/2 inches. What is the tota
    14·1 answer
  • Help I need nhelp on this question and no links please
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!