0

Loops

This is the output R RO ROC ROCE ROCEL ROCELL ROCELLE What is the code for this output i dont have any idea

8th Nov 2022, 7:24 AM
Bacani Rocelle M.
Bacani Rocelle M. - avatar
16 ответов
+ 4
Try to use a for loop inside another for loop https://code.sololearn.com/cYdsK4yCP2rn/?ref=app
8th Nov 2022, 8:23 AM
Abate Mon'y
Abate Mon'y - avatar
+ 3
Bacani Rocelle M. Why not to ask directly from your professor about these basic things.?
8th Nov 2022, 9:30 AM
A͢J
A͢J - avatar
+ 2
Bacani Rocelle M. Why is there any problem? Then why there is professor? Professors are for clearing every doubts so just ask.
8th Nov 2022, 9:36 AM
A͢J
A͢J - avatar
+ 1
Bacani Rocelle M. Doesn't matter they can help you just ask.
8th Nov 2022, 9:38 AM
A͢J
A͢J - avatar
+ 1
This would be a possible solution, I have explained some concepts insaid the code. https://code.sololearn.com/cZQIEaFwwE7b/?ref=app
9th Nov 2022, 3:14 PM
Víctor Sanz García
Víctor Sanz García - avatar
0
Abate Mon'y we need to use loops we dont need constant to code because our prof didn't teach us constant
8th Nov 2022, 8:31 AM
Bacani Rocelle M.
Bacani Rocelle M. - avatar
0
Then you remove the constant
8th Nov 2022, 8:32 AM
Abate Mon'y
Abate Mon'y - avatar
0
It is okay?
8th Nov 2022, 8:32 AM
Bacani Rocelle M.
Bacani Rocelle M. - avatar
0
just use . int L=str.length()
8th Nov 2022, 8:32 AM
Abate Mon'y
Abate Mon'y - avatar
0
Can you do only for loops? Cause i cant understand some of your code
8th Nov 2022, 8:35 AM
Bacani Rocelle M.
Bacani Rocelle M. - avatar
8th Nov 2022, 8:41 AM
Abate Mon'y
Abate Mon'y - avatar
0
Thank you but idk how it works like the length one or our prof didn't discuss it to us sorry i cant understand how you do it
8th Nov 2022, 8:44 AM
Bacani Rocelle M.
Bacani Rocelle M. - avatar
0
A͢J sorry but i cant ask mg prof
8th Nov 2022, 9:34 AM
Bacani Rocelle M.
Bacani Rocelle M. - avatar
0
A͢J im doing some advance learning
8th Nov 2022, 9:37 AM
Bacani Rocelle M.
Bacani Rocelle M. - avatar
0
A͢J okay then can you help me
8th Nov 2022, 9:41 AM
Bacani Rocelle M.
Bacani Rocelle M. - avatar
0
sir mujhe bhi sikha sakte ho
10th Nov 2022, 1:44 AM
Siddharth Vishwakarma
Siddharth Vishwakarma - avatar