Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Problem5;
- public class Lösung
- {
- public Lösung()
- {
- }
- static public void main(String args[])
- {
- System.out.println(res());
- }
- public static int res()
- {
- int res= 0;
- int a = 20;
- while(res == 0)
- {
- if(a % 2 == 0 && a % 3 == 0 && a % 4 == 0 && a % 5 == 0 && a % 6 == 0 && a % 7 == 0 && a % 8 == 0 && a % 9 == 0 && a % 10 == 0 && a % 11 == 0&& a % 12 == 0&& a % 13 == 0&& a % 14 == 0&& a % 15 == 0&& a % 16 == 0&& a % 17 == 0&& a % 18 == 0&& a % 19 == 0&& a % 20 == 0)
- res = a;
- ++a;
- }
- return res;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement