Untitled
unknown
plain_text
2 years ago
237 B
4
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...