int list[] = {7,2,2,9,5}; int start() { string com; for (int i = 0; i < ArraySize(list); i++) { string com_i = "\n " + list[i]; com += com_i; } Comment("\n " + "List of Number: " + com); return(0); }
i apologize for this question.
i realize that what i need is add two more variables.
Thank you very much for the comment.
febrianto:
i apologize for this question.
i realize that what i need is add two more variables.
Thank you very much for the comment.
You can remove com_i variable. It is unnecessary and slows down the loop.
int list[] = {7,2,2,9,5}; int start() { string com = ""; for (int i = 0; i < ArraySize(list); i++) { com += "\n " + (string)list[i]; } Comment("\n " + "List of Number: " + com); return(0); }
Regards.
Jose Francisco Casado Fernandez:
You can remove com_i variable. It is unnecessary and slows down the loop.
Regards.
Cool Thnks.. :)
febrianto:
You are welcome. Regards.
Cool Thnks.. :)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Dear all programmer, i need your help to solve below algorithm,,
i just would like to show it as follows :
exp:
1
2
3
4
5
but it didn't work, some advise will be appreciated.. :) thnks.