0

C++ question is in description.

. 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 solve with for and if else in c++

5th Jun 2018, 6:08 AM
Preet Aman
Preet Aman - avatar
10 Answers
+ 1
You can post your try here and we will help you.
5th Jun 2018, 6:31 AM
Matthias
Matthias - avatar
+ 1
did you even try to make it?
5th Jun 2018, 6:47 AM
‎ ‏‏‎Anonymous Guy
0
?
5th Jun 2018, 6:42 AM
Preet Aman
Preet Aman - avatar
0
Your code
5th Jun 2018, 6:43 AM
Matthias
Matthias - avatar
0
yeah,i'll try talk about logic firstly we need to create spaces then print these values but i don't know how to print
5th Jun 2018, 11:27 AM
Preet Aman
Preet Aman - avatar
0
#include <iostream> and in the main function std::cout<<"your text"; you can also print values of variables Have a look at the C++ course here on Sololearn first, there you can find how to print
5th Jun 2018, 12:16 PM
Matthias
Matthias - avatar
0
Preet Aman I hope you know how to print first half of this code i mean this one 1 12 123 1234 following code will help you print second part. This part will be at the end of the "main" for loop, no need to change anything for( int k=1; k<i; k++) cout << i;
5th Jun 2018, 12:48 PM
‎ ‏‏‎Anonymous Guy
0
here i see that when row =column its ok but when column!>row value is less(decreased)
5th Jun 2018, 2:04 PM
Preet Aman
Preet Aman - avatar
0
so doubt cleared?
5th Jun 2018, 2:15 PM
‎ ‏‏‎Anonymous Guy
0
need time
5th Jun 2018, 4:11 PM
Preet Aman
Preet Aman - avatar