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
Firlakuza [10]
3 years ago
8

Write a C++ program which displays the following shape. Please help me out with it.

Computers and Technology
1 answer:
Korvikt [17]3 years ago
3 0

Answer:

/*

Notably, this leaves a blank line at the top, so if that shouldn't be there you can tweak it.

This was built successfully with gcc

gcc -Wall shape.cpp -lstdc++

*/

#include <iostream>

using namespace std;

int main(void){

   int w, x;

   for(w = 0; w < 16; w += 2){

       for(x = 0; x < w >> 1; x++){

           cout << "*";

       }      

       for(x = w; x < 14; x++){

           cout << " ";

       }      

       for(x = 0; x < w >> 1; x++){

           cout << "*";

       }      

       cout << endl;

   }  

   return 1;

}

You might be interested in
DO NOT JOIN ANY Z O O M MEETINGS FROM THIS PERSON! IS A TRAP Please help me get them banned!!!!!
s2008m [1.1K]

Answer:

how do i help?

Explanation:

7 0
3 years ago
Read 2 more answers
bookmark question for later what database did zach choose? microsoft excel microsoft access db2 oracle
Veronika [31]

Zach chooses the databases is Oracle

<h3>Explain about the databases?</h3>

Information that is organized into a database is made available for quick administration, updating, and access. Network databases, object-oriented databases, and hierarchical databases are all types of databases.

According to the TOPDB Top Database index, Oracle is the most widely used database with 32.09% of the market share. Computer databases often hold collections of data records or files containing information, such as sales transactions, customer data, financials, and product information My SQL, with a score of 16.64, is in second place, while SQL Server, with a score of 13.72 percent, is third. Since at least 2006, Oracle has dominated global database searches, making it the most used database not just in 2022.

To learn more about databases refer to:

brainly.com/question/28255661

#SPJ4

5 0
1 year ago
If you can't brake to avoid a hazard, you should _____. A. engage your antilock braking system B. accelerate immediately instead
zzz [600]

Answer :  A. Engage your anti lock braking system

Explanation:

If you encounter a situation where you are not able to avoid the hazard then you should engage your anti-lock braking system because anti-lock braking system helps you steer safely by restoring traction to your tires. It helps prevent wheels locking up allowing driver to steer safely.

If you accelerate immediately or set the wheel to cruise control then probability of accident increases. In an attempt to steer around, chances of accident are also more.

8 0
3 years ago
Read 2 more answers
How to instal and complie java in windows?
Paladinen [302]
Go to www.oracle.com , the Downloads tab, find Java, probably SE (Standard Edition) and then select the appropriate SDK (Software Development Kit).

I don't remember if you need to use an absolute (full) path to javac on Windows, but the command is something like:

javac yourProgram

yourProgram needs to be named yourProgram.java
4 0
3 years ago
The term technology is derived from the Chinese word. it is true or false​
DiKsa [7]

Answer:

True

Explanation:

it's your perfect answers

4 0
3 years ago
Read 2 more answers
Other questions:
  • Using the CPI to calculate the inflation rate​ _______________ the underlying inflation​ rate, and using the core inflation rate
    7·2 answers
  • Computers connected across large distances form a local area network. true or false
    6·1 answer
  • What is the default layout position for images added to a Word 2016 document?
    8·1 answer
  • Bob gets an e-mail addressed from his bank, asking for his user ID and password. He then notices that the e-mail has poor gramma
    6·1 answer
  • Catherine purchased dried herbs from the grocery store. Which structure would she use if wanted to create a mixture of powdered
    8·2 answers
  • Please program this in Python.
    13·1 answer
  • I NEED HELP ASAP!!!!!! IM IN THE MIDDLE OF A QUIZ!!!! Why did the film industry agree to set standards for film production?
    11·1 answer
  • What type of movement does the output produce
    10·1 answer
  • Write the application of computer in education and communication​
    9·1 answer
  • POR FAVOR AYUDENME DIGAN SOLO 10 Ejemplos de Software de Sistema. SI NO REPRUEBO Y LE DOY CORONA
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!