0

Can someone do a for or do while loops about this code

I want to learn more about loops https://code.sololearn.com/cE1QSmp8aSl3/?ref=app https://code.sololearn.com/cE1QSmp8aSl3/?ref=app

8th Nov 2022, 10:28 PM
Bacani Rocelle M.
Bacani Rocelle M. - avatar
2 Answers
+ 2
for loop example: #include <iostream> using namespace std; int main() { char letters[17]="ROCELLE M BACANI"; for(int i = 0; i < 17; i++){ for(int j = 0; j <= i; j++){ cout << letters[j]; } cout << endl; } return 0; }
9th Nov 2022, 12:19 AM
Denise Roßberg
Denise Roßberg - avatar
0
Jay Matthews i need the same output so that i can compare my work
8th Nov 2022, 11:11 PM
Bacani Rocelle M.
Bacani Rocelle M. - avatar