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
spayn [35]
3 years ago
10

Write a procedural programming loop.. Your loop should start variable n with a value of 10 and count down to zero. The loop shou

ld terminate when n reaches the value of zero.
Computers and Technology
1 answer:
anastassius [24]3 years ago
3 0

Answer:

//Here is the for loop in C.

for(n=10;n>0;n--)

{

   printf("count =%d \n",n);

}

Explanation:

Since C is a procedural programming language.Here if a loop that starts with n=10; It will run till n becomes 0. When n reaches to 0 then loop terminates otherwise it  print the count of n.

// here is code in C++.

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{  // variables

int n;

// for loop that runs 10 times

// when n==0 then loop terminates

for(n=10;n>0;n--)

{

   cout<<"count ="<<n<<endl;

}

return 0;

}

Output:

count =10

count =9

count =8

count =7

count =6

count =5

count =4

count =3

count =2

count =1

You might be interested in
Question #1
Veronika [31]

The correct evolution is the production era-selling era-marketing era-relationship era

Explanation:

Evolution of marketing is the systematic way in which the marketing industry developed and hence the various developments and the modifications are systematically defined in each of the era

There are four major stages of development the product life cycle, the introduction, the growth and the maturity and finally the decline of the product. Philip Kotler is the founder of this modern method of marketing

4 0
2 years ago
Please help me with this question ​
Anna35 [415]

Answer:

for this, u will have to put what u already know into a few stanzas and turn it in. hope this helps.

7 0
2 years ago
How can you troubleshoot Internet access problems
Oxana [17]

Answer:

When your Internet service is disrupted, there can be many things that have gone wrong. The best way to start is to determine if everything is broken (i.e. you can't access any websites or Internet services) or if the difficulty is only with a certain program or a specific website is not responding.

  • Check the network icon (or wireless connection settings) to see if you have Internet access. Ensure that your network adapter is not turned off.
  • Check for changes to proxy settings.
  • Check the network cables if your computer is wired to the router.
  • Reset your router.
  • Check your firewall or security software. There are specific troubleshooting steps for ZoneAlarm issues.
  • Check your browser access issues or email problems.

6 0
3 years ago
Please answer this question​
Vanyuwa [196]

Explanation:

A. Encryption. (B. Printer

6 0
2 years ago
Cybercards are most useful for __________. keeping a personal diary writing to-do lists tracking Internet-based research creatin
egoroff_w [7]
Cybercards are most useful for TRACKING INTERNET-BASED RESEARCH.

Cybercard note-taking makes possible the following tasks:

1) highlighting and taking notes directly on a webpage<span>2) </span><span>organizing information collected with tags</span>
<span>3) searching your collection of notes, tags, and webpages</span>
5 0
3 years ago
Other questions:
  • Derek found that the CPU was running several processes. While Derek was looking at Task Manager, the computer crashed. Derek res
    15·2 answers
  • A computer abuse technique called a ____ involves inserting unauthorized code in a program, which, when activated, may cause a d
    11·1 answer
  • Everyone’s favorite speedy blue hedgehog recently returned to his 2D origins in a critically acclaimed side-scrolling game. What
    8·2 answers
  • Alcohol is a gateway drug. true or false?
    13·2 answers
  • What did Edison's device to view motion pictures inspire the Lumiere brothers to invent?
    14·1 answer
  • In the event you get pulled over for a traffic stop, describe the situation from the police officer's perspective and list at le
    6·2 answers
  • What is the meaning of web browser
    11·1 answer
  • Given that a function receives three parameters a, b, c, of type double , write some code, to be included as part of the functio
    9·1 answer
  • Please someone helppppppp
    15·2 answers
  • Keith would like to compare data he has collected from research. The data includes the electrical output
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!