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
Translate to algebraic expressions
galben [10]
1. x+½
2. 82-x
3. 4(x+3/10)
4. 2x-21
5.2x²
6. ⅓(x+53)

7 0
2 years ago
You plan to go to a technical school, and there are two options in your city. School A will charge you $750 per semester for tui
vichka [17]
For one semester a School A-

750 + 200 = 950

For one semester at School B-
10 percent off of 1,000 is 900

School A- $950
School B- $900


3 0
3 years ago
Jorge swam a total of 173 minutes during 3 days. He swam the same number of
qwelly [4]

Answer:

60

Step-by-step explanation:

5 0
2 years ago
Read 2 more answers
Natalie works in a shop and earn $43 per day. She earns an extra $3 for each toy she sells. If Natalie wants to earn at least $7
Pachacha [2.7K]
<span>This would be your answer 43 + 3n ≥ 70, so n ≥ 9

I hape this help</span>
7 0
2 years ago
Read 2 more answers
Which is the correct label of the line? (1 point)<br> a<br> AC<br> O<br> CD<br> D<br> Ο OllA
Scrat [10]

Answer:

The correct label of the line is CD

4 0
2 years ago
Other questions:
  • A pair of dice are tossed what us the probability that the sum on the two dice is 8, given that the sum is more than 6 condition
    8·1 answer
  • The rest of the numbers are cut offf<br><br> 225<br> 250<br> 270
    11·1 answer
  • Help please (ty to the people who know this) :)
    15·2 answers
  • If x^2 - 16 &gt; 0, which of the following must be true?
    8·1 answer
  • Help ASPP<br><br>-3/5 x = 18 <br>-30<br>-10 4/5<br>10 4/5<br>30​
    7·1 answer
  • What is the missing value for x?
    15·2 answers
  • Can someone help me with this?​
    12·1 answer
  • I NEED HELP ASAP
    11·1 answer
  • A random sample of 28 items is drawn from a population whose standard deviation is unknown. The sample mean is x=900 and the sam
    14·1 answer
  • Write the radical below in the simplest radical form<br><br> √210 <br><br> Pls show ur work
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!