0
How do i give range from -infinity to +infinity?
6 Antworten
+ 3
You obviously can't, your computer is not magic and won't count until the infinity since you want it to stop at some point and do the rest of the code.
You might want to give very high values instead depending of what are your purposes
+ 3
(in javascript)
var userInputs = [];
while(true){
var input = prompt('Input:','');
if(typeof(input) === 'undefined'){
break;
}
userInputs.push(input);
}
+ 1
I'm not an expert but don't data types have different limits?
0
it's not infinity I seek but the code to how user can store as enough data as he can
0
in python
0
You got the idea, simply convert the syntax