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
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;
}
0
Jay Matthews i need the same output so that i can compare my work