Horje
sum of a list using for loop in dart Code Example
sum of a list using for loop in dart
main(List<string> args) {
  var sum = 0;
  var given_list = [1, 2, 3, 4, 5];

  for (var i = 0; i < given_list.length; i++) {
    sum += given_list[i];
  }

  print("Sum : ${sum}");
}




Java

Related
how to convert line into string java Code Example how to convert line into string java Code Example
mock ParameterizedTypeReference Code Example mock ParameterizedTypeReference Code Example
java array get index Code Example java array get index Code Example
how to create an entry in java Code Example how to create an entry in java Code Example
how to change java version in pom.xml Code Example how to change java version in pom.xml Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7