+ 1
Insert char between loop result
hello, how can i insert a char between loop result? char is x and = loop result 2, 4 ,6 ,8 ,10 i want the last result like : 2x4x6x8x10=
4 Respuestas
+ 4
@Immortal
cout* :D
+ 3
@Immortal I thought x was a variable
+ 1
for (int i=2;i<=10;i+=2){
cout<<i;
if (i<10){cout<<x;}}
+ 1
thank you so much pegasus 🍻