Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.90 KB | None | 0 0
  1. public class u3a3 {
  2.  
  3.    
  4.     public static void main(String[] args) {
  5.         int r,m,n,i=1,sTeil;
  6.        
  7.         while (i <= 4)
  8.         {
  9.             for (m = 1; m < 10000; m++)
  10.             {
  11.                 sTeil=0;
  12.                 for (n = 1; n < m; n++)
  13.                 {
  14.                     r = m % n;
  15.                     if (r == 0)
  16.                         sTeil=sTeil+n;
  17.                 }
  18.                 if (sTeil == m)
  19.                 {
  20.                     System.out.println(i + ". Lösung " + sTeil);
  21.                     i=i+1;
  22.                 }
  23.                    
  24.            
  25.             }
  26.            
  27.         }
  28.            
  29.  
  30.     }
  31.  
  32. }
  33. URLClassLoader$1.run() line: not available [local variables unavailable]   
  34. AccessController.doPrivileged(PrivilegedExceptionAction<T>, AccessControlContext) line: not available [native method]  
  35. Launcher$AppClassLoader(URLClassLoader).findClass(String) line: not available  
  36. Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: not available
  37. Launcher$AppClassLoader.loadClass(String, boolean) line: not available 
  38. Launcher$AppClassLoader(ClassLoader).loadClass(String) line: not available
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement