vendredi 11 septembre 2020

I want to print the letters in each word in matrix form given the number of columns

I have a string thestackoverflow and I also have # columns = 4
Then I want the output as

thes  
tack  
over  
flow

Aucun commentaire:

Enregistrer un commentaire