I am writing a module. When I run the module, I want it to ask for a variable, like I can in other programing languages such as C++ or Python.
For example, in C++:
int i;
cout << "Please enter an integer value: ";
cin >> i;
I want something similar to the above in Mathematica.
Input? – Öskå May 22 '14 at 12:24Inputiteratively? In order to input several variables at once. – MOON May 22 '14 at 12:28Listinside theInput[]field and it will returns this list:vars = Input[];Head@varswill be aListif you provide{something, something else}. – Öskå May 22 '14 at 12:30Input[]. I take this as the answer. – MOON May 22 '14 at 16:34