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
dexar [7]
3 years ago
6

Given an int variable n that has already been declared and initialized to a positive value , use a while loop to print a single

line consisting of n asterisks. Use no variables other than n.
Computers and Technology
1 answer:
Scrat [10]3 years ago
8 0

Answer:

The code to this question can be given as:

Code:

int n=5; //define an integer variable n and assign a positive value.

while(n > 0) //define while loop,

{

printf("*"); //print asterisks.

n --; //decrements value.

}

Explanation:

The description of the above code can be given as:

  • In this code we define an integer variable that is "n" and assign a positive value that is "6".
  • Then we define a while loop. It is an entry control loop which means it will check condition first then executes. In this loop, we use variable n and check condition that the value of n is greater than 0.
  • In this loop, we print the asterisks and decrease the value of n. When the variable n value is 0. It will terminate the loop and print asterisks.

You might be interested in
The ________ is responsible for the Internet's domain name system and the allocation of IP addresses. ICANN W3C ISOC IAB
Maurinko [17]

Answer:

ICANN

Explanation:

It handles the installation and processing of various databases related to network domains and provides a consistent and secure networking service and there are incorrect options are described as follows:

  • IAB, which provides a protocol for managing IETF, is therefore incorrect.
  • W3C is used in web development.
  • ISOC is used to provide Internet access.
7 0
4 years ago
Select all that apply.
Serhud [2]

Answer:

Page grouping

Page Setup grouping

Layout grouping

Schemes grouping

4 0
3 years ago
Your computer uses 4 bits to represent decimal numbers (0, 1, 2, 3 and so on) in binary. What is the SMALLEST number for which a
myrzilka [38]

Answer: C

Explanation:

I believe this is because you cannot represent the number sixteen with only four binary bits. The highest you can go is 15.

3 0
3 years ago
NEED HELP
valentina_108 [34]
It’s string. you can make the string bounce and make a sound.
7 0
3 years ago
Read 2 more answers
1. Bus bars are used in an electric iron as A. connectors between the thermostat and the element. B. electrical terminals. C. th
katrin2010 [14]
Answer - A (Connectors between the thermostat and the element)

Electrical busbars usually conduct electrical energy and <span>transmits power from tan input feeder to an output feeder. In the case of an electric iron, the input feeder is the thermostat while the output feeder is the heating element present in the iron.</span>
5 0
3 years ago
Other questions:
  • Which statements describe the advantages of using XML?
    12·2 answers
  • Write thanks to the IT teacher at the end of grade 5
    7·1 answer
  • What is one of the first power tools you’ll need as electrician
    15·1 answer
  • A computer lab is an example of what type of network
    14·1 answer
  • If a network device has a mask of /28, how many IP addresses are available for hosts on this network?
    5·1 answer
  • Write a program name Dollars that calculates and displays the conversion of an entered number of dollars into currency denominat
    11·1 answer
  • What do you mean by GIGO (Garbage-In-Garbage-Out) in computer system?​
    6·1 answer
  • Can someone help me with this
    10·1 answer
  • A _______________ is a particular type of network that uses circuits that run over the Internet but that appears to the user to
    10·1 answer
  • Write a c program that reprints input so that no line is longer than 50 characters. Specifically, for lines less than or equal t
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!