+ 1

What should i print for this output?

E DE CDE BCDE ABCDE https://code.sololearn.com/cLiRCAZNG4c8/?ref=app

14th Oct 2022, 3:00 AM
Avinash
Avinash - avatar
6 Answers
+ 1
https://code.sololearn.com/cHHn3YUBkjlu/?ref=app
14th Oct 2022, 3:39 AM
Niththish
Niththish - avatar
+ 1
As per the question, when your n=5 you need to start from 5th alphabet (ie) E 1st row E 2nd row DE 3rd row CDE 4th row BCDE Here we can see the pattern the problem requires to follow. (ie) 1st row = 1col 2nd row = 2col 3rd row = 3col 4th row = 4col https://code.sololearn.com/cHHn3YUBkjlu/?ref=app
14th Oct 2022, 3:37 AM
Niththish
Niththish - avatar
+ 1
Avinash Kumar You can know this things only by continues practice and trying to understand other people's approach Keep going, at the beginning everything seems tough but you will get use to it. All the best
14th Oct 2022, 3:44 AM
Niththish
Niththish - avatar
+ 1
1 general advice would be First think about how you would manually solve this question. Then try to solve using code. For example:- if someone ask you to do this question using pen&paper what you will do? In paper you will first write E Second line DE Third line CDE right? So now think about how you could write program to print 1 character in 1st line 2 character in 2nd line and so on
14th Oct 2022, 3:50 AM
Niththish
Niththish - avatar
+ 1
Niththish thank you so much for resolving my doubts
14th Oct 2022, 3:11 PM
Avinash
Avinash - avatar
0
Niththish how can I know that what should I print
14th Oct 2022, 3:41 AM
Avinash
Avinash - avatar