vendredi 3 mars 2017

C++ print a pattern with loops where the number of stars in first row is input by user

Print the pattern like shown below with loops, where the number of stars in first row is input by user. Also, enable the user to enter in the character that will be used to separate the stars. Example if number of stars is 5 and separation character is X. ***** X **** X * * X ** ** X * * X **** X *****

Aucun commentaire:

Enregistrer un commentaire