Untitled

Anonymous
plain_text
11/12/2023 1:06 AM
316 B
12
Indexable
#include <iostream>
using namespace std;
int main() {
  string text = "mcdo tayo";
  for (int i = 0; i < text.length(); i++) {
    for (int j = 0; j <= i; j++) {
      cout << text[j];
    }
    cout << endl;
  }
  return 0;
}
Editor is loading...