I found it very challenging at first..I'll practice them as much as i can for getting a grip and keep revising these important and brainstorming questions.Thankyou babbar bhaiya ,you are helping us children a lot with your videos.
This is how completed the DABANGG pattern question (breaking it into 4 parts for a better understanding). Thanks a lot Babbar Sir for making the playlist of this course❤ #include using namespace std; int main(){ int n,i=1; cin>>n;
My code for dabangg pattern (Sorry it's in Python) def pattern(no): for i in range(1,no+1): for j in range(1,no+1-(i-1)): print(f"{j}",end="") print("*"*((i*2)-2), end="") for k in range(no-(i-1),0,-1): print(f"{k}",end="") print("") no = int(input("Enter the number: ")) pattern(no)
Thank You Love Bhaiya, because of this video I learnt about pattern programming and recently got placed in Webkul. In their placement process their first round was of a hard level pattern programming question, and they gave 60 minutes to solve that one question, I was able to solve it in 40min, all thanks to you. Out of around 80 students only 6 were able to solve the patterns and moved to the second round and I was one of them, and then eventually cleared the technical and HR round which were easy.
Finaly Solved #DABBANG Pattern before I was can't solve even one question of patterns but after this lectures now I feel confident. Thanks Babbar Bhaiya #include using namespace std; int main () { int n; cin>>n; int i = 1; while(i
this can also work, #include using namespace std; int main(){ #ifndef ONLINE_JUDGE freopen("input.txt","r",stdin); freopen("output.txt","w",stdout); #endif
These questions remembering me my College days... When we used to do that patterns... I wanted to start my coding and DSA skills again... and these videos came out... Thankyou for making these kind of series... Now I am enjoying programming again... And doing all the problems into JavaScript...😊
at 29:33 u have said one method to solve that problem by using start but that method will not work , I solved it by my own as a beginner I am so happy with it😊 problem: ABC DEF GHI Solution: int main() { int n; cin>>n; int row=1; int count=1; while(row
45:00 Ques can also be done by using a formula : 'A' + n - i + j n = input i = rows j = col CODE :-- #include using namespace std; int main() { int n; cout n; int i = 1; while (i
instead of 3, you can generalise it with num (n). This way, this formula will hold true for any value of num (n) and you won't need to create count variable. I had come up with this formula when he was telling to use count variable, and was searching in comments if someone else got this too....😄
Thank you soo much bhaiya. I'm in third year I was so worried about DSA and suddenly you dropped a video about the course and seeing you upload videos regularly gives me motivation. Thank you soo much 💓
For ques at 42:00 , we can print (n - row + col + 'A' - 1) too. From this, we can infer that row has negative sign cuz row wise, value is decreasing (D-C-B-A) and col has positive sign cuz column wise, value is increasing (A-B-C-D). It's something I noticed, and it may help in understanding other questions too.
too complex for others to understand + lots of variable used, these long formulas can be avoided by just initialising row/i or/and j/col with 0 instead of 1.
Pattern 18 : 41:55 another method is think in perspective of D instead of A that implies take first character as D now the formula becomes char ch = 'D' - i + 1; write this formula outside j loop but inside i loop then cout
//This would be the thing that would be used other than value (time stamp 17:30 in video) /* Generic code to print the pattern according to the input: if i/p : 3 o/p:1 2 3 3 4 5 if i/p : 4 o/p:1 2 3 3 4 5 4 5 6 7
*/ #include using namespace std; int main(){ int n; int row=1; cin>>n; while(row
This would be the thing that would be used other than value (time stamp 17:40 in video) #include using namespace std; int main(){ int n; cin >> n; int i =1; while (i
finally first time studying till 11 30 just because of this interesting lecture take me 3 hours to complete i also done those last two question by myself. dont no why i am writing this comment but just great lecture usually i dont comment your luck
Thank you so much bhaiya for starting such an amazing series..... I have grasped the concept of patterns completely from your videos and it was mind blowing learning experience for me.. 🙏 I know that how much effort you're putting in to bring such a brand new content for all the learners out there ❤❤❤❤. This is going to be number 1 DSA course on the whole RUclips world 🌎
Dabangg Question : You can even simplify this pattern into 4 Parts => Left triangle => Divide the stars Triangle into two halves => Print Right Triangle A bit lengthy but simplest approach to understand quickly. #include using namespace std; int main() { int number; cin >> number; int row = 1; int counter = 1; while (row
If you're reading this comment, I'm thankful to you and your materials, which have really helped me, and I would say that this DSA series is enough to land a fresher job in the top MNCs. I've purchased the DSA course, and the content is somewhat similar, but the Babbar bhaiya has solved a lot of questions to make one understand the programming basics. If you think that this course is not enough, I would recommend that you just consistently follow this, and then you will get to know about the quality of this DSA series.
instead of these code u use #include using namespace std; int main() { int r; cin >> r; for (int i = 0; i < r; i++) { for (int j = 0; j < r; j++) { if (j < i) { cout
32:27
You can also use
int i = 1;
int j = 1;
char k = 'A';
while(i
I found it very challenging at first..I'll practice them as much as i can for getting a grip and keep revising these important and brainstorming questions.Thankyou babbar bhaiya ,you are helping us children a lot with your videos.
Your age?
Pattern Problem 17:50
Code N Explanation
=> Code :-
int n;
cin>>n;
int i=1;
while(i
thanks a bunch!
we can also use cout
@@karanmaheshwari9550 bro your logic is way better
@@himanshuchaudhery6461 Thank you :)
Thanks I was very close....
21:47 You dont need to put +1 in (i-j+1) if you initialise j with 0 and put j
for 36:00 this seems a better approach
int n;
cin >> n;
int i=1;
char ch = 'A';
while(i
sem sem but different
This is how completed the DABANGG pattern question (breaking it into 4 parts for a better understanding). Thanks a lot Babbar Sir for making the playlist of this course❤
#include
using namespace std;
int main(){
int n,i=1;
cin>>n;
//first triangle
while(i
Genius
My code for dabangg pattern (Sorry it's in Python)
def pattern(no):
for i in range(1,no+1):
for j in range(1,no+1-(i-1)):
print(f"{j}",end="")
print("*"*((i*2)-2), end="")
for k in range(no-(i-1),0,-1):
print(f"{k}",end="")
print("")
no = int(input("Enter the number: "))
pattern(no)
excellent
Programming is not so difficult but with the right explanation. It turns out programming is just fun learning it from you.
sach mai bhai bohot madat ho rahi hai solution dekhane se pehele jab question try kar ke sahi ho raha hai tab alag hi khushi ho rahi hai
Thank You Love Bhaiya, because of this video I learnt about pattern programming and recently got placed in Webkul. In their placement process their first round was of a hard level pattern programming question, and they gave 60 minutes to solve that one question, I was able to solve it in 40min, all thanks to you.
Out of around 80 students only 6 were able to solve the patterns and moved to the second round and I was one of them, and then eventually cleared the technical and HR round which were easy.
bro what was the question
Don't they asked dsa in technical round..?
Pattern's Timestamps:-
Pattern 3 : 0:25
Pattern 4 : 2:36
Pattern 5 : 5:09
Pattern 6 : 7:48
Pattern 7 : 10:19
Pattern 8 : 13:06
Pattern 9 : 13:43
Pattern 10 : 17:57
Pattern 11 : 22:43
Pattern 12 : 22:47
Pattern 13 : 28:57
Pattern 14 : 29:55
Pattern 15 : 33:48
Pattern 16 : 37:52
Pattern 17 : 38:44
Pattern 18 : 41:55
Pattern 14's Easy Approach : 47:02
Pattern 19 : 47:31
Pattern 20 : 51:42
Pattern 21 : 52:56
Pattern 22 : 53:49
Pattern 23 : 54:01
Pattern 24 : 54:13
Pattern 25 : 54:28
Pattern 26 : 54:51
Pattern 27 : 1:01:09 ( Dabangg Pattern )
Thank you 😌🙏
You also have to mention which one is home work.
Thanks for hard work.
@@iUmerFarooq Homework timestamps are already given by love babbar
ruclips.net/video/p4-xSbXvWII/видео.html
@@iUmerFarooq nice name bro
13:39
int n;
cin>>n;
int i = 1;
int count = 1;
while(i
16:00 this problem can be also done like this:
while(row
Wrong method bro, he said not to use any other variable except row, col and n...
this is the solution ...
int row = 1;
while(row
@@rahulnikam1279 thanks
@@rahulnikam1279 nice solution bro.
@@rahulnikam1279 thanks bro, sadly I was not able to solve this.
@@Manoj_Jadhav.12 welcome bro❣❣
28:53
int n;
cin>>n;
int row = 1;
while(row
17:47 HOMEWORK
Without taking any variable
Start col loop from col=0
While(col < n)
cout
will not work perfectly as for the first iteration row = 1 and column = 1 and that should give 2 so that is not correct it will be (row+column) - 1
@@minecraftcookie2929 take row= 1 & col = 0 and print row+col
For this pattern, we can do like this also!! Right??
D
C D
B C D
A B C D
i=1,j=1;
While (i
@@minecraftcookie2929
int n;
cout n;
for (int i = 0; i
@@Webkaadda maine glt kya bola
This course is just amazing it helps a lot in students placement...ur r dining just amazing bahiya....
52:50. Formula
Int star=n-row+1;
While(col
thanks
20:00 we use direct use for (j>=1)
i=1;
while(i = 1){
cout
Done with this lecture..😍
Solved all the questions and ab toh alag hi level confidence aara hai patterns me🙃
Thank you for making it happen Bhaiya..🤗
Finaly Solved #DABBANG Pattern
before I was can't solve even one question of patterns but after this lectures now
I feel confident.
Thanks Babbar Bhaiya
#include
using namespace std;
int main () {
int n;
cin>>n;
int i = 1;
while(i
#include
using namespace std;
int main() {
int n,i,j;
cin>>n;
i=n;
while(i>=1)
{
j=1;
while(j
#include
using namespace std;
int main() {
int n;
cin>>n;
for(int i=0;i
this can also work,
#include
using namespace std;
int main(){
#ifndef ONLINE_JUDGE
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
#endif
int n;
cin>>n;
int row=1;
int t=n;
while(row
we can combine 2nd and 3rd triangle by just
int star = 2*(i -1);
@@samyaksharma4403 😇😇
@5:45 We can use this formula: cout
how did u find it brother
1:01:40 (code of last question "Dabangg Pattern" is)
#include
using namespace std;
int main(){
int row =1;
int n;
cin>>n;
while (row
Star Pattern Homework Questions (in between 52:00 - 54:00 timestamp)
1.
int main() {
int n;
int i =1;
cin>>n;
while(i
Thanku Vinay
thanku so much vinay
Bhai bina j liye kaise krdia aapne @vijay
@vinay
@@arshiqbal9397 jaruri thoda hai j ho. Logic aalag ho sakte hai
46:00
The expression which I fig. Out is
char ch= 'A' + n - I + j - 1 ;
Iss bhi hogaya bhaiya .. (alt.)
Mazza ah raha hai. .
Programming op !! 🔥♥️
This course is just amazing it helps a lot of Students for their improving Problem Solving Skills...ur r doing just amazing bahiya....
These questions remembering me my College days... When we used to do that patterns... I wanted to start my coding and DSA skills again... and these videos came out... Thankyou for making these kind of series... Now I am enjoying programming again... And doing all the problems into JavaScript...😊
Yes me too doing all this into js can we code buddy?
@@MJSMUTKDER Sure... This would help both of us..👍
@@akanshaagrawal549 connect with there
@@akanshaagrawal549 so plz find my contact details in my channel > about
@@akanshaagrawal549 mam, are you working professional?
21:22 can also be solved by
int main(){
int n;
cin>>n;
int i;
i=1;
while(i
Thanks sir...for uploading...I was waiting for this... awesome dsa placement course!
17:41
// 8. pattern
// 1
// 2 3
// 3 4 5
// 4 5 6 7
// another way to solve this problem
int n, row=1;
cin>>n;
while(row
Thanks bro!!
That’s insane man
More than 25+ Pattern program karaye aapne ❤❤❤🔥🔥🔥
at 29:33 u have said one method to solve that problem by using start but that method will not work , I solved it by my own as a beginner I am so happy with it😊
problem:
ABC
DEF
GHI
Solution:
int main()
{
int n;
cin>>n;
int row=1;
int count=1;
while(row
I think it should work
int main()
{
int n;
cin >> n;
int row = 1;
char start = 'A';
while(row
40:12 char ch = (A + row - 1);
Cout
Yes bro it's working
i applied this too.\
31:50 int n;
cin>>n;
int i =0;
while (i
45:00 Ques can also be done by using a formula :
'A' + n - i + j
n = input
i = rows
j = col
CODE :--
#include
using namespace std;
int main()
{
int n;
cout n;
int i = 1;
while (i
21:00 we can also do this question like previous one, just change value= value + 1 to value= value - 1.
hey wyd rn?
52:49 H.W
int main(){
int n;
cin>>n;
int row =1;
while(row
His hardwork is commendable making videos with this quality and filled with amazing content
Hats Off Bhaiya ❤️
Studying from you has always been a dream n now its coming true ❤
i think its becoming true
at 5:49 ... i think the pattern is 3 x i + j .... where we have to take i = 0 and j = 1 while writing code ... and i < n and j
instead of 3, you can generalise it with num (n). This way, this formula will hold true for any value of num (n) and you won't need to create count variable. I had come up with this formula when he was telling to use count variable, and was searching in comments if someone else got this too....😄
@@rebelexorcist2443 lol kk ... got it
17:16
Pattern:
1
23
345
4567
without using value variable,
use the formula, (row + col -1)
Code:
int main(){
int n;
cin>>n;
int i=1;
while(i
this is not working
Thank you soo much bhaiya. I'm in third year I was so worried about DSA and suddenly you dropped a video about the course and seeing you upload videos regularly gives me motivation. Thank you soo much 💓
right now you are in forth year
so did u complete the series an dget placed? genuine question
@@Quavo-goa yes bro, I've completed the series and yes I got the placement and majority of the credit goes to this DSA series.
@@visheshkaran7083 like what's your base pay
for 17:50
int n;
cin>>n;
int row = 1;
while(row
For ques at 42:00 , we can print (n - row + col + 'A' - 1) too. From this, we can infer that row has negative sign cuz row wise, value is decreasing (D-C-B-A) and col has positive sign cuz column wise, value is increasing (A-B-C-D). It's something I noticed, and it may help in understanding other questions too.
i too found that logic myself
too complex for others to understand + lots of variable used, these long formulas can be avoided by just initialising row/i or/and j/col with 0 instead of 1.
formula 'A' -i+j+3; this can also be
aapki wajah se mujhe apni khoyi hui sakti yaad aane lagi hai + god
can relate 🤣
Achcha aap bhi Hawa Mein Ud sakte ho😂
40:00 int n;
cin>>n;
int i = 1;
char count = 'A';
while(i
53:38 Homework Solution:
int n;
cin>>n;
int row=1;
while(row
why is increment of space done shouldnt the decrement be done since its decreasing down the row?
thanks Akshita for this
wrong code
💡All Homework Answers with output ->
13:20 :
int raw = 1;
int col = 1, print = 1;
while (raw
👏
Thanks a lot
No bro last one wrong
@@sandeepkonkala5027 No bro ! it run fine.
Very good bro
for 42:05
int n;
cin>>n;
int row = 1;
while(row
I was literally waiting for combined course of C++ with DSA on this platform . And YEAH!! HERE YOU ARE WITH THIS AMAZING COURSE 🥳🥳🥳
THANK
YOU
BHAIYA
🌼
++
@Chiku Hey buddy I also doing this but I dont have any partner can we code together
@@_victorsays i also finding a coding partner🧐
@@rahulsinghrajput8013I am finding a coding partner too
Time Stamp: 52:35
#include
using namespace std;
int main(){
int n;
cin>>n;
int i=1;
while(i
thanks vro
timestamp 38:00 code please : )
#include
using namespace std;
int main()
{
int n;
coutn;
int i,j;
for(i=1;i=i;j--)
{
cout
Thank you bhaiya🙏🙏 for explaining the concepts very well .I've completed all pattern problems which you had given for homework🤩
it is really a master piece, no need to further wandering here and there for dsa .
it is amazing.
1:01:30 HomeWork Questions
CODE:
int n;
cout
Star wala m 2*i-2 hoga
thank you so much
@@i_foodie00 can i get your insta account??
Question at 41:51
mine worked using the A + i - 1 only
code :
int n ;
cin>>n;
int i = 1 ;
while (i
29:51 Homework Sol:
#include
using namespace std;
int main(){
int n;
cin>>n;
int i = 1;
char ch = 'A';
while (i
Bhai ch ki value increment nhi ho rhi hai
wrong
26:00 can also be done like this and I think it is a bit easier to understand
int n;
cin>>n;
int i = 1;
char c = 65; //ASCII value of A
while(i
yeah I also did this by doing char c = ' A ' it works
Pattern 18 : 41:55
another method is think in perspective of D instead of A
that implies take first character as D now the formula becomes char ch = 'D' - i + 1; write this formula outside j loop but inside i loop then cout
One better code at 20:46 can be
int main()
{
int n ;
cout > n ;
int row = 1 ;
while (row
32:00
we can also do
#include
using namespace std;
int main()
{
int i=1,n;
cin>>n;
while(i
yes but you added one more line of code i.e ch=ch+1 , his motive is to use least lines of codes to solve the problem
for 33:27 int main() {
int n;
cin >> n;
int row = 1;
while (row < n) {
int col = 1;
while (col < n) {
char ch = 'A' + row + col- 2;
cout
for the h/w pattern at 17:46, you can use i + j - 1 in the second loop to avoid the usage of second int used there .
great
//This would be the thing that would be used other than value (time stamp 17:30 in video)
/*
Generic code to print the pattern according to the input:
if i/p : 3
o/p:1
2 3
3 4 5
if i/p : 4
o/p:1
2 3
3 4 5
4 5 6 7
*/
#include
using namespace std;
int main(){
int n;
int row=1;
cin>>n;
while(row
thank you
can u explain please?
Thanks bro for the solution
hey really appreciate the answer
Pattern 9, method 2
17:26 alternative way
int i=1;
int n;
cin>>n;
while (i
This would be the thing that would be used other than value (time stamp 17:40 in video)
#include
using namespace std;
int main(){
int n;
cin >> n;
int i =1;
while (i
this is wrong bro
@@future_engineer020 ok but the logic is right
@@jaikishan9912 yeah instead he can start j=1 till j
@@future_engineer020 why it is wrong?
47:10
Easy approach for Pattern 17
int row=1;
while(row
gud bro
For question at 7:00....
i=0,1,2,3.....
j=1,2,3,4....
Cout
17:37 Second method to solve this problem
#include
using namespace std;
int main()
{
int i=1;
int n = 4;
while(i
thanks man!
Greatest ever DSA series to exist on youtube .Your contribution will be remembered. You're God of DSA for us🙇♂
home work problem at 17:30
only change
cout
cout
i guess we have to increment value also no?
This is called "Quality content" :)
Pattern 3 : 0:25
Pattern 4 : 2:36
Pattern 5 : 5:09
Pattern 6 : 7:48
Pattern 7 : 10:19
Pattern 8 : 13:06
Pattern 9 : 13:43
Pattern 10 : 17:57
Pattern 11 : 22:43
Pattern 12 : 22:47
Pattern 13 : 28:57
Pattern 14 : 29:55
Pattern 15 : 33:48
Pattern 16 : 37:52
Pattern 17 : 38:44
Pattern 18 : 41:55
Pattern 19 : 47:31
Pattern 20 : 51:42
Pattern 21 : 52:56
Pattern 22 : 53:49
Pattern 23 : 54:01
Pattern 24 : 54:13
Pattern 25 : 54:28
Pattern 26 : 54:51
Pattern 27 : 1:01:09
THANKS LOVE BABBAR BHAIYA FOR THESE AMAZING LECTURES
For 46:00 better approach is cout
in the formula obtained at 32:19 , we can use ascii value of 'A' which is 65.
so our new formula will be char ch= 65+i+j-2; or char ch=63+i+j.
how can i do without having adci value of A
Your explaination is amazing, I hope this video reaches every student.
for 13:42
int n;
cin>>n;
int row = 1;
int count = 1;
while(row
32:57
alternate solution
#include
using namespace std;
int main()
{
int i=1 ;
char ch ='A';
while(i
how did you think of this approach?
//1:01:42 Dabbang Pattern
#include
using namespace std;
int main()
{
int n;
cin >> n;
int i = 1;
while (i
thanks bro
but a little suggestion instead of using another loop for 2nd star , u can write "**"
in 1st star cout..
thanks brother
bro can
int n,m=0;
cin >> n;
for(int i=1;i
good but should be space between two star
@@mukulkoli4700
43:10
More simpler way:🤞
include
using namespace std;
int main() {
int n;
cin>>n;
int i=1;
while (i
Thank you for your part in my learning.....The Best playlist for those who are from a different branch
20:45 could also be done by moving the column loop from row -> 0
Row from 1 to n
Column from i to 0 like => int j = i; while (j>0) -> j = j-1;
finally first time studying till 11 30 just because of this interesting lecture take me 3 hours to complete i also done those last two question by myself. dont no why i am writing this comment but just great lecture usually i dont comment your luck
This 20 questions + your explanation + self solving really helped me to understand patterns and loops. Dhanyawad bhaiya....
*Home Work #9* 54:27
Question: Print the following Pattern.
1 2 3 4
2 3 4
3 4
4
Code
int main() {
int n = 4;
int row = 1;
while (row
thanks antoine griezmann i was stuck on this question for so long...
Have you solved the last program ,if yes then PLZZ send me
@@bhargavchaturvedi dabaand pattern???
@@vishalsoni5824 yes i did
pattern problem 17:50 ;;
int n;
cin >> n;
int row = 1;
while (row
Dabangg pattern solved ✅ 😎
`
int main(){
int n;
cin >> n; // 5
int i = 1;
while (i
100% chatgpt answer
@@ishaanms9194 no brother 100% my answer. I don't give up that easily
Anyone's there who's doing it rn?
From 29 may🤝
Meh
Yup
Yup
Yupp
17:50
int n;
cin>>n;
int row = 1;
while (row
Thank you so much bhaiya for starting such an amazing series.....
I have grasped the concept of patterns completely from your videos and it was mind blowing learning experience for me.. 🙏
I know that how much effort you're putting in to bring such a brand new content for all the learners out there ❤❤❤❤.
This is going to be number 1 DSA course on the whole RUclips world 🌎
Bhai, ek pdf m har video k sath thode usi topic se related extra questions v upload karo sath m jisko extra questions bhi practice karne hai uske lie.
Yes sir ple use black screen so we can se by easily as white screen reflects more..
For 30:00 this seems a better approach
Int row=1;
While (row
Dabangg Question :
You can even simplify this pattern into 4 Parts => Left triangle => Divide the stars Triangle into two halves => Print Right Triangle
A bit lengthy but simplest approach to understand quickly.
#include
using namespace std;
int main()
{
int number;
cin >> number;
int row = 1;
int counter = 1;
while (row
Thanks a lot bro. This really helped me .
If you're reading this comment, I'm thankful to you and your materials, which have really helped me, and I would say that this DSA series is enough to land a fresher job in the top MNCs. I've purchased the DSA course, and the content is somewhat similar, but the Babbar bhaiya has solved a lot of questions to make one understand the programming basics. If you think that this course is not enough, I would recommend that you just consistently follow this, and then you will get to know about the quality of this DSA series.
Hlw bhai jo bhaiya me c++ karaya hai mene aabi dekhna suru liya hai me Dsa bi krna chahata hu kya is course me DSA bi include hai
yes bro full dsa is included
@@sagarthapliyal828
5:59 we can use formula as cout
This session is very interesting . Thank u so much sir for making this session very interactive.
For pattern
1
2 3
3 4 5
4 5 6 7
Without new variable we can do (row+colum-1) and print this
kyaa baat me to kab se socha raha tha acha hua aap ne bata diya ye to mere dimag me aya hi nahi
Thanks👍
we cannot use (col+row-1 ) as it will make the loop run for infinite times
int row = 1;
while (row
@@ingonitoReview
int n=4,row=1,col;
while(row
Ha bhai ekdam
13:39 HW: #include
using namespace std;
int main()
{
coutn;
while(row
This video series is pure gem in youtube... Thank you so much for putting in so much effort bhaiya😊
Present bhaiya🙋♀️ 😇
Sab log attendance laga do
👇
Proxy lagwa de bhai apne dusre account se.
@@kishanpayadi8168 😆waah
for 17:44
the other way around is
int main() {
int a;
cin>>a;
int row = 1;
while(row
Thankyou I am practicing most of time but I can't find it😢
22:50 this pattern can also be achieved by this method :-
#include
using namespace std;
int main()
{
int row=1;
int n;
cin>>n;
int ch='A';
while(row
53:45 Solution
#include
using namespace std;
int main() {
int n;
cin>>n;
int row =1;
while(row
instead of these code u use
#include
using namespace std;
int main()
{
int r;
cin >> r;
for (int i = 0; i < r; i++)
{
for (int j = 0; j < r; j++)
{
if (j < i)
{
cout
Thank you so much 🎉
I got stucked in this question for almost an hour
Why space is decreasing here please tell me
@@homamahmad7859 why space is decreasing here
@@Keshav2005a to get out of the while loop, after printing the space for (row-1) times every time we are entering a new row