spielwiese
Last change
on this file since f534a3 was
f534a3,
checked in by Michael Brickenstein <bricken@…>, 19 years ago
|
*bricken: initial version
git-svn-id: file:///usr/local/Singular/svn/trunk@8505 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.