spielwiese
Last change
on this file since 3c473c was
3c473c,
checked in by Kai Krüger <krueger@…>, 14 years ago
|
rename directory modules to dyn_modules
anticipating "modules" directory for cmake.
git-svn-id: file:///usr/local/Singular/svn/trunk@13033 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
148 bytes
|
Line | |
---|
1 | ring r; |
---|
2 | timer=1; |
---|
3 | proc sum(int n){ |
---|
4 | number one=1; |
---|
5 | number sum=0; |
---|
6 | int i; |
---|
7 | for(i=0;i<n;i++){ |
---|
8 | sum=sum+one; |
---|
9 | } |
---|
10 | return(sum); |
---|
11 | } |
---|
12 | sum(1000000); |
---|
13 | $ |
---|
Note: See
TracBrowser
for help on using the repository browser.