[#JARQ] Hey Community!! | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 4

[#JARQ] Hey Community!!

Is There Any Similar Function Or Way To Print Some Character Multiple Times In C++ Just Like We Do In Python EX:->>>> print(5*'&') Output----------&&&&& Just Any Method Of Doing That In A Short And Simpler Way. Thanks For Your Time...šŸ˜ŠšŸ˜Š

25th Apr 2018, 6:14 PM
ā„¢TheChamp921
ā„¢TheChamp921 - avatar
4 Respostas
+ 4
I think this will work: cout << string(5, '&');
25th Apr 2018, 10:43 PM
Zeke Williams
Zeke Williams - avatar
+ 4
yup, Zeke Williams, it works---just tested it in playground.
25th Apr 2018, 10:55 PM
Eric Zatarack
Eric Zatarack - avatar
+ 3
Eric Zatarack nice šŸ˜Ž
25th Apr 2018, 11:04 PM
Zeke Williams
Zeke Williams - avatar
+ 3
Thanks @Zeke This Is Really Going To Help A Lot Cheers Bud!!āœ‹
26th Apr 2018, 12:14 AM
ā„¢TheChamp921
ā„¢TheChamp921 - avatar