Find accurate and reliable answers to your questions on IDNLearn.com. Ask anything and receive thorough, reliable answers from our community of experienced professionals.
In the Small Basic programming language, please explain how one would add up the sum of any number of data points. Meaning, that, depending on user input (the amount of data points there are) and the data (the entered data for each data point) I can calculate the sum, regardless of how many there are. Is there a way to do this?
Simply put both values as variables. It's been a long time since I used small basic, as it was only used as an introductory language (I use Python, now)
userInputVariable + dataPointVariable
A key point to remember for the written theory exam is when the variables are strings, this process is called concatenation.
Thank you for using this platform to share and learn. Don't hesitate to keep asking and answering. We value every contribution you make. IDNLearn.com is your go-to source for accurate answers. Thanks for stopping by, and come back for more helpful information.