can you please show me output for N=10
Manmohan loves patterns - i
@shubham.mehla2000
Expected output for input n = 10
1
11
111
1001
11111
100001
1111111
10000001
111111111
1000000001
could please tell me what’s the mistake in my code
got it thank you!!!
one more thing , is my code dry or not?
@shubham.mehla2000
If you mean the “Don’t repeat yourself” thing … then no. You could have covered it in lesser if - else statements.
But it’s still fine.
sir , please show me solution with lesser if-esle.
please!
@shubham.mehla2000
Since you have already done the question correctly , I’ll provide you my solution in the private chat. Please refer to it.
1 Like