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
What is the Inverse function of f(x)= x^2 - 49
tatyana61 [14]

Answer:

the opposite

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
Which equation and solution can be used to solve this problem?
Lapatulllka [165]
N - 22 = 24
n = 24 + 22
n = 46
6 0
3 years ago
Read 2 more answers
I NEED HELP FAST PLEASE!
Zinaida [17]

Answer:

Step-by-step explanation:

1.5 + 5 = 6.5

hope it helps

7 0
3 years ago
The quotient of 40 and the product of a number and 33
Ymorist [56]
40 divided by 33n. hope it helps!
6 0
3 years ago
If 20 machines produce 1,240 printers in a day,
d1i1m1o1n [39]

Answer:

12 machines

Step-by-step explanation:

The production rate per machine is 1240/20 = 62

For 1,984 printers it would take 32 machines (1984/62 = 32)

32 needed minus the 20 they already have means they need 12 more machines.

7 0
3 years ago
Other questions:
  • Brian's school locker has a three-digit combination lock that can be set using the numbers 5 to 9 (including 5 and 9), without r
    8·1 answer
  • Plz help! ill give brainliest​
    8·2 answers
  • How do you convert 250% into a fraction
    7·1 answer
  • Someone Help please !!!!!!
    15·2 answers
  • Se desea construir un depósito de agua con forma cilíndrica de radio r y de altura 2·r. A. Hallar la función que proporciona el
    10·1 answer
  • Three years ago, Sherman was twice as old as Clive. If Clive’s present age is c, which expression represents Sherman’s present a
    15·1 answer
  • Drag the tiles to the correct boxes to complete the pairs. Match each inequality to the number line that represents its solution
    5·1 answer
  • the perimeter of a rectangle is 92m. the length is 10m more than twice the width. find the dimensions
    11·1 answer
  • CORRECT ANSWER WITH EXPLANATION WILL GIVE BRAINLIEST!!!
    13·2 answers
  • Amy and Darren each solved the following system of equations using a different method
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!