IDNLearn.com connects you with experts who provide accurate and reliable answers. Ask your questions and receive prompt, detailed answers from our experienced and knowledgeable community members.

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?


Sagot :

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.
We appreciate your presence here. Keep sharing knowledge and helping others find the answers they need. This community is the perfect place to learn together. Thank you for visiting IDNLearn.com. We’re here to provide accurate and reliable answers, so visit us again soon.