Seudónimo Seudónimo
  • 03-11-2018
  • Computers and Technology
contestada

Can someone please help me in answering this!?!
The language is C++

Can someone please help me in answering this The language is C class=

Respuesta :

tonb
tonb tonb
  • 03-11-2018

Here is a somewhat cryptic solution that works:

#include <algorithm>

#include <cstdlib>

using namespace std;

void q(char c, int count)

{

for (int i = 0; i < count; i++) {

 putchar(c);

}

}

void p(int b1, int plusses)

{

q(' ', b1);

q('+', plusses);

}

int main()

{

for (int i = -3; i <= 3; i++)

{

 int pl = min(6, (3 - abs(i)) * 2 + 1);

 p(6-pl, pl);

 i == 0 ? p(0, 6) : p(6, 0);

 p(0, pl);

 putchar('\n');

}

getchar();

}


Answer Link

Otras preguntas

A triangle has a base of 4 inches and height of 6 inches. What is the area of the triangle? 10 in2 12 in2 20 in2 24 in2
D SMARI 3 - 2 2 TRIBE 13 3 4 -2 F- 5 - 3 -2 GN SIGMA​
Solving a system of equation to make comparison between men and woman earning degrees
the products in ? are the ? needed for cellular respiration.​
What is the income that the supplier receives from selling one or more unit?
Best answer gets brainliest
how may interphsd are in the cell
what does the phrase lonely no longer in paragraph 3 suggest about the narrators smotional state
if a cross between two pea plants results in F1 results of 155 tall peas and 45 short peas what were the genotypes of the parents
the permeter of a rectangle is 24 inches the lenght is 2 inches complete an equation to slove for the width w