Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int quersumme(int z) {
- int sum = 0;
- while (z > 0) {
- sum += z % 10;
- z /= 10;
- }
- return sum;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement