Please help..!!!

M

martinmontielr

Hi! i need to do a program that print this figure of numbers...

PROGRAMA GENERADOR DE SECUENCIA TRIANGULAR DE NUMEROS
Cuantos renglones son: 7




1


2 3 2


3 4 5 4 3


4 5 6 7 6 5 4


5 6 7 8 9 8 7 6 5


6 7 8 9 0 1 0 9 8 7 6


7 8 9 0 1 2 3 2 1 0 9 8 7


Please if somebody can helpme... thankx,.
 
?

=?iso-8859-1?q?Erik_Wikstr=F6m?=

Hi! i need to do a program that print this figure of numbers...

PROGRAMA GENERADOR DE SECUENCIA TRIANGULAR DE NUMEROS
Cuantos renglones son: 7

1

2 3 2

3 4 5 4 3

4 5 6 7 6 5 4

5 6 7 8 9 8 7 6 5

6 7 8 9 0 1 0 9 8 7 6

7 8 9 0 1 2 3 2 1 0 9 8 7

Please if somebody can helpme... thankx,.

#include <iostream>

int main() {
std::cout <<
"1\n" <<
"2 3 2\n" <<
"3 4 5 4 3\n" <<
"4 5 6 7 6 5 4\n";

return 0;
}

That should get you started, I left the rest as an exercise.
 
Z

Zeppe

Hi! i need to do a program that print this figure of numbers...

What does make you think that posting the same post after one week will
let you obtain more success? You have to do it by yourself!

Hope not to read about this exercise again in the future...

Regards,

Zeppe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
474,297
Messages
2,571,529
Members
48,242
Latest member
BarbMott55

Latest Threads

Top