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]
4 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]4 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
How dependent are we on technology? ​
rusak2 [61]

very independent  : ) we use it for everything

3 0
4 years ago
Read 2 more answers
What value will the variable x have when the loop executes for the first time?
tia_tia [17]

The value that x will return when it runs the above loop for the first time is Tom. It is to be noted that the above code is JavaScript.

<h3>What is a JavaScript?</h3>

JavaScript is an object-oriented computer programming language that is used for the creation of effects that are interactive.

Scripts that are written using Java Programming Language can be used to control multimedia, create animated images, control how websites behave etc.

Java is also used in the creation of Games and many more.

Learn more about JavaScript at:
brainly.com/question/16698901

6 0
2 years ago
Which orientation style has more height than width?
gayaneshka [121]

Answer:

"Portrait orientation" would be the correct answer.

Explanation:

  • The vertical picture, communication as well as gadget architecture would be considered as Portrait orientation. A webpage featuring portrait orientation seems to be usually larger than large containing lettering, memo abases as well as numerous types of content publications.
  • One such volume fraction also becomes perfect for impressionism depicting an individual from either the top.

Thus the above is the correct answer.

3 0
3 years ago
Wouldn’t it be nice if whenever we messed up our life we could simply press ‘Ctrl Alt Delete’ and start all over?
Orlov [11]
Sure, if you want to delete things
8 0
4 years ago
Read 2 more answers
Can someone please give me some ideas of hooks about negative affects about social media?​
Kruka [31]

I'm sure you have heard of social media, But have you heard it start's to get out of hands because kids get addicted?

1)Causes kids to be addicted

7 0
3 years ago
Read 2 more answers
Other questions:
  • Google plus has communities BUT
    5·2 answers
  • Application partitioning gives developers the opportunity to write application code that can later be placed on either a client
    7·1 answer
  • Which of the following is not a feature of Hootsuite?
    14·1 answer
  • The variety of theatre introduced in the 1960s that denotes semi-professional or even amateur theatre in the New York/Manhattan
    11·1 answer
  • What is nominal data?
    5·1 answer
  • What type of html list will automatically place a number in front of the items?
    9·1 answer
  • 1. Consider a direct-mapped cache that can accommodate 8Mbytes from a main memory, that uses a 32-bit address and 32-byte blocks
    5·1 answer
  • Write a JAVA program containing a method called hasEight(), which takes an int as input and returns true if the number contains
    14·1 answer
  • Do you ever wonder what types of media you will be using five years from now or when you graduate from college or a training pro
    9·1 answer
  • I’m gonna ask this again because I REALLY need an answer.
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!