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
What factors does 2 have?
Vanyuwa [196]

Answer:

2 and 1

Step-by-step explanation:

2 only has the factors 2 and 1 because it is a prime number.

4 0
3 years ago
Line AB contains points A (4,5) and B(9,7). What is the slope of AB
ki77a [65]
This line crosses the point (4,5)so we can make an equation to find the slope:
4 = a \times 5 \\ 4 = 5a \\  a =  \frac{4}{5}
hope this helps

8 0
3 years ago
Read 2 more answers
Can someone please solve and explain these questions??? ​With work please.
ankoles [38]
Y=1 because on each equation it needs 1 for it to be the answer
8 0
2 years ago
Enter the correct number<br> 1/5 of 35 bottles of water =
Alex777 [14]

Answer:

7

Step-by-step explanation:

you divide the 35 by 1/5 to get 7 bottles of water

7 0
2 years ago
Read 2 more answers
I need help plssssssssss
drek231 [11]

We can say that the area of the figure equals...

5.5 by 9 rectangle - 2 by 2 triangle - 2 by 5 triangle - 9 by 3.5 triangle

5.5 by 9 rectangle = 5.5 x 9 = 49.5 un²

2 by 2 triangle = 1/2 x 2 x 2 = 2 un²

2 by 5 triangle = 1/2 x 2 x 5 = 5 un²

9 by 3.5 triangle = 1/2 x 9 x 3.5 = 15.75 un²

area of figure = 49.5 un² - 2 un² - 5 un² - 15.75 un² = 26.75 un²

answer: 26.75 un²

5 0
3 years ago
Read 2 more answers
Other questions:
  • Please help answer this question idk if im right or not
    15·1 answer
  • What is the common difference for this aritmetic sequence -5,-1,3,7,11
    12·2 answers
  • Which equation represents the reflected and translated function?
    13·2 answers
  • What’s the answer? I don’t understand
    9·1 answer
  • Find the distance around a circular track if it is 100 feet across. (Use 3.14 for TT.)
    10·1 answer
  • Please help me it would make my day​
    13·2 answers
  • PLS ANSWER FAST <br><br><br> solve for the unknown... <br> 3^x = 9^x+5
    13·2 answers
  • Use the scientific calculator if needed<br> Sin^-1 squareroot 2/2
    10·1 answer
  • The length of the arc of this semi-circle is 70m. What is the length of the radius?
    9·1 answer
  • PLEASE HELP NOW!!!!!!!!!
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!