Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Aufgabe1 {
- static int qs(int n)
- {
- if(n<10)
- {
- return n;
- }
- if(n>10)
- {
- n = n%10 + qs(n/10);
- }
- return n;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement