Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. if (test > 9) {
  2. result = 0;
  3. result= result+ (test % 10);
  4. System.out.println(result+"kor 10");
  5. for (int i = 0; i <result; i++) {
  6. test = test/10;
  7. result = result + Math.floor(test % 10);
  8. if (test < 10) {
  9. continue;
  10. }
  11. }
  12. }
  13. else {
  14. System.out.println(result);
  15.  
  16. }
  17. test=result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement