Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
237 B
1
Indexable
Never
#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;
}