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
snow_tiger [21]
3 years ago
5

Write a C++ Program to generate the following output using a loop structure(s).(Do not hardcode the output values!) Include suff

icent comments
8 6 4 2 0

6 4 2 0

4 2 0

2 0

0
Computers and Technology
1 answer:
Gemiola [76]3 years ago
5 0

Answer:

Following are the program in the C++ Programming Language.

#include <iostream> // header file  

using namespace std; // namespace

int main() // main function

{

int n=8; //variable declaration

for(int k=n;n>=0;n-=2) // iterating over the loop to print the format

{

int n1=n;

for(int j=n1;n1>=0;n1-=2)

{

cout<<n1<<" "; // display the format  

}

cout<<endl; // next line  

}

return 0;

}

<u>Output</u>:

8 6 4 2 0

6 4 2 0

4 2 0

2 0

0

Explanation:

Following are the description of the program.

  • Set an integer type variable "n" and initialize in it to 8.
  • Set two for loop, the first loop iterate from the variable "n" that is 8 to 0 with decrement by 2 and next for loop also iterate from 8 to 0 then, print the value of the variable "n1".
  • Finally, we break line after the second for loop.
You might be interested in
What is the best definition of a network?
Nataliya [291]

Answer:

like tv or wifi

Explanation:

6 0
3 years ago
Read 2 more answers
Which best compares appointments and events in Outlook 2010
lesantik [10]

In Microsoft Outlook, there are differences between appointment and event. Appointment is defined as <em>an activity that you schedule in your calendar which does not involve other people.</em> Appointments can be scheduled to a certain duration in a day. Event is defined as <em>an activity that you do with other people which lasts from 24 hours to longer. </em>

Thus, from these descriptions, the best answer to the question is (C) appointments have a start and end time of day, and events do not.

5 0
4 years ago
Anyone have Minecraft dungeons I need help with it
steposvetlana [31]

Answer:

for sure add me upppp its mypplong

5 0
3 years ago
Read 2 more answers
I. Direction: Write TRUE if the statement shows Principles of Facility Planning, and FALSE if
mr_godi [17]

The following are either true or false in respect of Principles of Facility Planning/Management.

No.  1 is True. No. 2 is False. No. 3 is False. No. 4 is True. No. 5 is True.

<h3>What are the Principles of Facility Planning?</h3>

The main principles of facility planning are given below:

  • The planner must coordinate the plans with other government agencies that provide facilities
  • look at other options before selecting the final location for the facility
  • give adequate justification for the proposed facility
  • develop a management plan that includes design priorities and operational strategies
  • use the Life-Cycle Cost principles while designing
  • ensure that it is in line with the organisations plans/goals etc

Please see the link below for more about Facility Management:

brainly.com/question/5047968

5 0
3 years ago
If an attacker purchases and uses a URL that is similar in spelling and looks like a well-known website in order for the attacke
Mice21 [21]

Answer:

URL hijacking

Explanation:

Based on the information provided within the question it can be said that in this scenario they seem to be using an attack known as URL hijacking. This attack, also known as "typosquatting", is when someone takes advantage of individual's typos when searching for popular sites, in order to get them to go to their site which generates them money the more traffic they get.

5 0
4 years ago
Other questions:
  • You discover memory is corrupted, what would be an indication of a software vs. a hardware issue?
    5·1 answer
  • Every application program has a _______________ segment
    6·1 answer
  • The ______ network became functional in 1969, linking scientific and academic researchers across the United States. Group of ans
    7·2 answers
  • Write a function called printEvens that prints all the even numbers between 2 and 20, inclusive. It will take no arguments and r
    6·1 answer
  • The Windows taskbar is generally found _____. at the top of the screen in the Start menu at the bottom of the screen at the righ
    14·2 answers
  • There exists a data type Date with member function Increment that increments the current Date object by one. The ++ operator is
    7·1 answer
  • Given an initialized variable fileName, write a sequence of statements that create a file whose name is given by the variable an
    15·1 answer
  • Write a function check_palindrome that takes a string as an input and within that function determines whether the input string i
    12·1 answer
  • If you double the force of and object what happens to the acceleration
    10·1 answer
  • HELP ME PLEASE 41 PTS
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!