+ 1

Write a program by c++ to print the following pattern number Triangle .

1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1

2nd May 2017, 6:26 PM
Zeyad Sharo
Zeyad Sharo - avatar
6 ответов
+ 1
Please read about the discussions rules before using it (search in other discussions)
2nd May 2017, 8:53 PM
Andrés04_ve
Andrés04_ve - avatar
0
write a question.
2nd May 2017, 7:58 PM
Drauchris
Drauchris - avatar
2nd May 2017, 8:28 PM
Andrés04_ve
Andrés04_ve - avatar
0
https://code.sololearn.com/ch0TsamQJ2KC/?ref=app
25th May 2017, 5:31 PM
Qutaba Qais Mahmood
Qutaba Qais  Mahmood - avatar
0
int a=1; cout <<a <<endl; a+=1; cout>>a; if (a> 2){ a=a-1; cout <<a <<endl; }
25th May 2017, 5:41 PM
Qutaba Qais Mahmood
Qutaba Qais  Mahmood - avatar
- 3
int a=1; int b=121; int c=12321; int d=1234321; cout <<a <<endl; cout <<b <<endl; cout <<c <<endl; cout <<d <<endl;
25th May 2017, 5:48 PM
Qutaba Qais Mahmood
Qutaba Qais  Mahmood - avatar