+ 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
6 Answers
+ 1
Please read about the discussions rules before using it (search in other discussions)
0
write a question.
0
https://code.sololearn.com/ch0TsamQJ2KC/?ref=app
0
int a=1;
cout <<a <<endl;
a+=1;
cout>>a;
if (a> 2){
a=a-1;
cout <<a <<endl;
}
- 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;