User Story
Create a code which calculates the sum of the numbers from 1 to 10.
Expected Outcome
The sum of the numbers from 1 to 10 is 55.
Code
Integer sum=0;
for (Integer i=1; i<=10; i++){
sum+=i;
}
System.debug('The sum of the numbers from 1 to 10 is ' +sum+'.');
Video
Video does not exists.