diff options
| author | Cliff Click <cliffc@acm.org> | 2026-10-04 13:30:41 -0700 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2026-10-04 13:30:41 -0700 |
| commit | a4994371c0b0fbea9d2802acc22d9cc3977a0de0 (patch) | |
| tree | 98fd05869028a931f5ec8cf503b5cdf6b6c52e87 /docs/2026_REBASE/demos/control.smp | |
| parent | 9149ea7a50c564856bd09633f38d980e8230c34f (diff) | |
| download | Simple-readme.tar.gz Simple-readme.zip | |
Slides for 2026 REBASEreadme
Diffstat (limited to 'docs/2026_REBASE/demos/control.smp')
| -rw-r--r-- | docs/2026_REBASE/demos/control.smp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/2026_REBASE/demos/control.smp b/docs/2026_REBASE/demos/control.smp new file mode 100644 index 00000000..6b7b1b17 --- /dev/null +++ b/docs/2026_REBASE/demos/control.smp @@ -0,0 +1,9 @@ +int n = arg; +if( n < 0 ) n = -n; +int sum = 0; +int i = 0; +while( i < n ) { + i = i + 1; + sum = sum + i; +} +return sum; |
