User Story
Write a code to find the sum of the integers in a list or array
List<Integer> numbers = new List<Integer>{4, 9, 12, 5, 4};
Code
List<Integer> numbers = new List<Integer>{4, 9, 12, 5, 4};
Integer sum=0;
for(Integer i : numbers){
sum+=i;
}
System.debug(sum);