mardi 19 mai 2015

Printing a string of similar characters

Without using a loop, how to print a sequence of similar characters? the number of such characters will be according to my wish. ie.

****** ( 6 stars)

********(or 8 stars)

is there any string function to do this? can printf be of any help?

Aucun commentaire:

Enregistrer un commentaire