Array
// this is sumple array
let array=[1,2,3,4]
array
double prod(double #1,int #2){ double result= 1; for(int i = 0;i<length;i++){ result = result * array[i]; } return result;}
array
my_list = [-15, -26, 15, 1, 23, -64, 23, 76]
new_list = []
while my_list:
min = my_list[0]
for x in my_list:
if x < min:
min = x
new_list.append(min)
my_list.remove(min)
print(new_list)
array
// An array in javascript is basicly a data structure set out like this:
const MyArray = {"Object1", "Object2", "Object3"};
array
// sorting an array of strings
var names = ["Adam", "Jeffrey", "Fabiano", "Danil", "Ben"];
// returns the sorted array
console.log(names.sort());
// modifies the array in place
console.log(names);
var priceList = [1000, 50, 2, 7, 14];
priceList.sort();
// Number is converted to string and sorted
console.log(priceList)
array
int[] spam = new int[] { 1, 2, 3 };
Arrays.stream(spam)
.boxed()
.collect(Collectors.toList());
array
<!DOCTYPE html>
<html>
<body>
<script>
var str = ["1818-15-3", "1819-16-3"];
var arr = str.split(":");
document.write(arr[1] + ":" + arr[2]);
</script>
</body>
</html>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us