Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1
- public int berechneSumme(int n)
- 2
- {
- 3
- int sum = 0;
- 4
- for (int i = 0; i <= n; ++i)
- 5
- {
- 6
- sum = sum + i;
- 7
- }
- 8
- return sum;
- 9
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement