Cilk ![]() |
similar languages: | C C# C++ C-Talk D Java Objective-C Pike TOM | |
Hello World | Michael Neumann |
#include <stdio.h> cilk void main() { printf("Hello World\n"); } |
Prints "Hello World" onto the
screen. |
Squares | Michael Neumann |
/* Cilk ist fast C */ #include <stdio.h> cilk void main() { int i; for(i = 1; i <= 10; ++i) printf("%d ", i*i); } |
Outputs the squares from 1 to
10. |