Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. class hf2
  2. {
  3. public static boolean tokeletese(int szam)
  4. {
  5. for(int i=1; i<n; i++)
  6. {
  7. if(n%i == 0)
  8. {
  9. sum+=i;
  10. }
  11. }
  12. if(sum == n)
  13. {
  14. return true;
  15. }
  16. else
  17. {
  18. return false;
  19. }
  20. }
  21. public static void main(String[] argv)
  22. {
  23. int n = Integer.parseInt(argv[0]);
  24. int sum = 0;
  25. int db = 0;
  26.  
  27.  
  28.  
  29. System.out.println();
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement