Mode:
Duration:
1
2
3
4
var nums = [1,2,3,4,5];
var sum = 0;
for n in nums do sum += n;
writeln(sum);Coding works best on desktop or with an external keyboard.
var nums = [1,2,3,4,5];
var sum = 0;
for n in nums do sum += n;
writeln(sum);Coding works best on desktop or with an external keyboard.
Calculates sum of an array of numbers.
var nums = [1,2,3,4,5];
var sum = 0;
for n in nums do sum += n;
writeln(sum);Chapel is a parallel programming language designed for high-performance computing (HPC). Developed by Cray Inc., it provides productivity features for writing scalable and portable parallel programs, combining high-level abstractions with fine-grained control over concurrency and data distribution.
Origin & Creator
Developed by Cray Inc. as part of the Cray Cascade project, first released in 2009.
Industrial Note
Chapel is mainly used in research, supercomputing centers, and scientific computing environments requiring scalable parallel execution.