In a line | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

In a line

for (int x=0;x<=5;x++){ court<<"*"; } output will be: * * * * * but i want the output: like this * * * * * ?????

7th Nov 2017, 8:27 AM
Shyamal Bhatt
Shyamal Bhatt - avatar
3 Respuestas
+ 13
The output will be ***** only... Only if u want space...do for (int x=0;x<=5;x++) cout<<"*"<<" " ;
7th Nov 2017, 8:38 AM
Frost
Frost - avatar
+ 2
@ James, Frost Thank you 👍👍 can tell it for Python too, * *. instead ***** * *
7th Nov 2017, 9:54 AM
Shyamal Bhatt
Shyamal Bhatt - avatar
+ 2
@James thank you so much 😀😀
7th Nov 2017, 10:16 AM
Shyamal Bhatt
Shyamal Bhatt - avatar